diff options
author | hjk <[email protected]> | 2008-12-02 16:19:05 +0100 |
---|---|---|
committer | hjk <[email protected]> | 2008-12-02 16:19:05 +0100 |
commit | cf11b696431d26920f54598c8f03f0a5cf822ffa (patch) | |
tree | 9387102d435481132b721fde8ca062c5b8a4f73f /tests | |
parent | 10e963fb6134b3974901707daa99f5a94d696bed (diff) |
more code cosmetics
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/extensionsystem/tst_composite.cpp | 4 | ||||
-rw-r--r-- | tests/auto/profilereader/data/includefiles/pri.cpp | 32 | ||||
-rw-r--r-- | tests/auto/profilereader/data/includefiles/pro.cpp | 32 | ||||
-rw-r--r-- | tests/auto/profilereader/profilecache.h | 5 | ||||
-rw-r--r-- | tests/auto/profilereader/qtversionmanager.h | 6 | ||||
-rw-r--r-- | tests/manual/dockwidgets/main.cpp | 16 | ||||
-rw-r--r-- | tests/manual/dockwidgets/mainwindow.cpp | 19 | ||||
-rw-r--r-- | tests/manual/dockwidgets/mainwindow.h | 14 | ||||
-rw-r--r-- | tests/manual/gdbdebugger/simple/app.cpp | 13 | ||||
-rw-r--r-- | tests/manual/gdbdebugger/simple/plugin.cpp | 1 | ||||
-rw-r--r-- | tests/manual/progressmanager/main.cpp | 4 | ||||
-rw-r--r-- | tests/manual/progressmanager/roundprogress.cpp | 1 | ||||
-rw-r--r-- | tests/manual/progressmanager/roundprogress.h | 6 | ||||
-rw-r--r-- | tests/manual/proparser/main.cpp | 3 |
14 files changed, 26 insertions, 130 deletions
diff --git a/tests/auto/extensionsystem/tst_composite.cpp b/tests/auto/extensionsystem/tst_composite.cpp index a62fc3137da..bb0934a66e4 100644 --- a/tests/auto/extensionsystem/tst_composite.cpp +++ b/tests/auto/extensionsystem/tst_composite.cpp @@ -30,9 +30,11 @@ ** version 1.2, included in the file GPL_EXCEPTION.txt in this package. ** ***************************************************************************/ -#include <QtTest/QtTest> + #include "../../../src/libs/extensionsystem/composite.h" +#include <QtTest/QtTest> + using namespace ExtensionSystem; class tst_Composite : public QObject diff --git a/tests/auto/profilereader/data/includefiles/pri.cpp b/tests/auto/profilereader/data/includefiles/pri.cpp index f678b92cef1..e69de29bb2d 100644 --- a/tests/auto/profilereader/data/includefiles/pri.cpp +++ b/tests/auto/profilereader/data/includefiles/pri.cpp @@ -1,32 +0,0 @@ -/*************************************************************************** -** -** This file is part of Qt Creator -** -** Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). -** -** Contact: Qt Software Information ([email protected]) -** -** -** Non-Open Source Usage -** -** Licensees may use this file in accordance with the Qt Beta Version -** License Agreement, Agreement version 2.2 provided with the Software or, -** alternatively, in accordance with the terms contained in a written -** agreement between you and Nokia. -** -** GNU General Public License Usage -** -** Alternatively, this file may be used under the terms of the GNU General -** Public License versions 2.0 or 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the packaging -** of this file. Please review the following information to ensure GNU -** General Public Licensing requirements will be met: -** -** http://www.fsf.org/licensing/licenses/info/GPLv2.html and -** http://www.gnu.org/copyleft/gpl.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt GPL Exception -** version 1.2, included in the file GPL_EXCEPTION.txt in this package. -** -***************************************************************************/ diff --git a/tests/auto/profilereader/data/includefiles/pro.cpp b/tests/auto/profilereader/data/includefiles/pro.cpp index f678b92cef1..e69de29bb2d 100644 --- a/tests/auto/profilereader/data/includefiles/pro.cpp +++ b/tests/auto/profilereader/data/includefiles/pro.cpp @@ -1,32 +0,0 @@ -/*************************************************************************** -** -** This file is part of Qt Creator -** -** Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). -** -** Contact: Qt Software Information ([email protected]) -** -** -** Non-Open Source Usage -** -** Licensees may use this file in accordance with the Qt Beta Version -** License Agreement, Agreement version 2.2 provided with the Software or, -** alternatively, in accordance with the terms contained in a written -** agreement between you and Nokia. -** -** GNU General Public License Usage -** -** Alternatively, this file may be used under the terms of the GNU General -** Public License versions 2.0 or 3.0 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the packaging -** of this file. Please review the following information to ensure GNU -** General Public Licensing requirements will be met: -** -** http://www.fsf.org/licensing/licenses/info/GPLv2.html and -** http://www.gnu.org/copyleft/gpl.html. -** -** In addition, as a special exception, Nokia gives you certain additional -** rights. These rights are described in the Nokia Qt GPL Exception -** version 1.2, included in the file GPL_EXCEPTION.txt in this package. -** -***************************************************************************/ diff --git a/tests/auto/profilereader/profilecache.h b/tests/auto/profilereader/profilecache.h index cc91c0f3b74..cc31702be5a 100644 --- a/tests/auto/profilereader/profilecache.h +++ b/tests/auto/profilereader/profilecache.h @@ -30,6 +30,7 @@ ** version 1.2, included in the file GPL_EXCEPTION.txt in this package. ** ***************************************************************************/ + #ifndef PROFILECACHE_H #define PROFILECACHE_H @@ -45,7 +46,7 @@ public: { return new ProFile(arg); } }; -} -} +} // namespace Internal +} // namespace Qt4ProjectManager #endif // PROFILECACHE_H diff --git a/tests/auto/profilereader/qtversionmanager.h b/tests/auto/profilereader/qtversionmanager.h index ae1e9b78d91..ed7f8713582 100644 --- a/tests/auto/profilereader/qtversionmanager.h +++ b/tests/auto/profilereader/qtversionmanager.h @@ -30,16 +30,18 @@ ** version 1.2, included in the file GPL_EXCEPTION.txt in this package. ** ***************************************************************************/ + #ifndef QTVERSIONMANAGER_H #define QTVERSIONMANAGER_H #include <QtCore/QString> -class QtVersion { +class QtVersion +{ public: QString path() { return QString(); } QString sourcePath() { return QString(); } - QHash<QString,QString> versionInfo() { return QHash<QString,QString>();} + QHash<QString, QString> versionInfo() { return QHash<QString, QString>(); } }; #endif // QTVERSIONMANAGER_H diff --git a/tests/manual/dockwidgets/main.cpp b/tests/manual/dockwidgets/main.cpp index dc2a5960f5d..e07796c8841 100644 --- a/tests/manual/dockwidgets/main.cpp +++ b/tests/manual/dockwidgets/main.cpp @@ -30,23 +30,11 @@ ** version 1.2, included in the file GPL_EXCEPTION.txt in this package. ** ***************************************************************************/ -/**************************************************************************** -** -** Copyright (C) 2005-$THISYEAR$ Trolltech AS. All rights reserved. -** -** This file is part of the $MODULE$ of the Qt Toolkit. -** -** $LICENSE$ -** -** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE -** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. -** -****************************************************************************/ - -#include <QApplication> #include "mainwindow.h" +#include <QApplication> + int main(int argc, char *argv[]) { QApplication app(argc, argv); diff --git a/tests/manual/dockwidgets/mainwindow.cpp b/tests/manual/dockwidgets/mainwindow.cpp index 8944d3c425f..561a2c42d2d 100644 --- a/tests/manual/dockwidgets/mainwindow.cpp +++ b/tests/manual/dockwidgets/mainwindow.cpp @@ -30,24 +30,12 @@ ** version 1.2, included in the file GPL_EXCEPTION.txt in this package. ** ***************************************************************************/ -/**************************************************************************** -** -** Copyright (C) 2005-$THISYEAR$ Trolltech AS. All rights reserved. -** -** This file is part of the $MODULE$ of the Qt Toolkit. -** -** $LICENSE$ -** -** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE -** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. -** -****************************************************************************/ - -#include <QtGui> #include "qdockarrows.h" #include "mainwindow.h" +#include <QtGui> + class TestTool : public QWidget { Q_OBJECT @@ -88,7 +76,6 @@ private: QPixmap m_tmp; QLabel *m_widget; }; -#include "mainwindow.moc" MainWindow::MainWindow() { @@ -122,3 +109,5 @@ void MainWindow::createDockWindows() addDockWidget(Qt::RightDockWidgetArea, dock); } } + +#include "mainwindow.moc" diff --git a/tests/manual/dockwidgets/mainwindow.h b/tests/manual/dockwidgets/mainwindow.h index b96d9368588..220c32dc74a 100644 --- a/tests/manual/dockwidgets/mainwindow.h +++ b/tests/manual/dockwidgets/mainwindow.h @@ -30,18 +30,6 @@ ** version 1.2, included in the file GPL_EXCEPTION.txt in this package. ** ***************************************************************************/ -/**************************************************************************** -** -** Copyright (C) 2005-$THISYEAR$ Trolltech AS. All rights reserved. -** -** This file is part of the $MODULE$ of the Qt Toolkit. -** -** $LICENSE$ -** -** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE -** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. -** -****************************************************************************/ #ifndef MAINWINDOW_H #define MAINWINDOW_H @@ -63,4 +51,4 @@ private: QLabel *centralWidget; }; -#endif +#endif // MAINWINDOW_H diff --git a/tests/manual/gdbdebugger/simple/app.cpp b/tests/manual/gdbdebugger/simple/app.cpp index 5ca2cf3b233..b00a259457e 100644 --- a/tests/manual/gdbdebugger/simple/app.cpp +++ b/tests/manual/gdbdebugger/simple/app.cpp @@ -31,19 +31,6 @@ ** ***************************************************************************/ -/**************************************************************************** -** -** Copyright (C) 2004-$THISYEAR$ Trolltech AS. All rights reserved. -** -** This file is part of the $MODULE$ of the Qt Toolkit. -** -** $LICENSE$ -** -** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE -** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. -** -****************************************************************************/ - #include <QtCore/QDebug> #include <QtCore/QDir> #include <QtCore/QHash> diff --git a/tests/manual/gdbdebugger/simple/plugin.cpp b/tests/manual/gdbdebugger/simple/plugin.cpp index d348c979125..a240f229739 100644 --- a/tests/manual/gdbdebugger/simple/plugin.cpp +++ b/tests/manual/gdbdebugger/simple/plugin.cpp @@ -31,7 +31,6 @@ ** ***************************************************************************/ - #include <stdio.h> #include <qglobal.h> diff --git a/tests/manual/progressmanager/main.cpp b/tests/manual/progressmanager/main.cpp index cf01a62928e..0ee436deb25 100644 --- a/tests/manual/progressmanager/main.cpp +++ b/tests/manual/progressmanager/main.cpp @@ -30,9 +30,11 @@ ** version 1.2, included in the file GPL_EXCEPTION.txt in this package. ** ***************************************************************************/ -#include <QtGui/QApplication> + #include "roundprogress.h" +#include <QtGui/QApplication> + int main(int argc, char *argv[]) { QApplication a(argc, argv); diff --git a/tests/manual/progressmanager/roundprogress.cpp b/tests/manual/progressmanager/roundprogress.cpp index 6adc3753efe..9e952212191 100644 --- a/tests/manual/progressmanager/roundprogress.cpp +++ b/tests/manual/progressmanager/roundprogress.cpp @@ -30,6 +30,7 @@ ** version 1.2, included in the file GPL_EXCEPTION.txt in this package. ** ***************************************************************************/ + #include "roundprogress.h" #include "multitask.h" #include "runextensions.h" diff --git a/tests/manual/progressmanager/roundprogress.h b/tests/manual/progressmanager/roundprogress.h index efd7a0fbb56..8c09f70a5c2 100644 --- a/tests/manual/progressmanager/roundprogress.h +++ b/tests/manual/progressmanager/roundprogress.h @@ -30,19 +30,19 @@ ** version 1.2, included in the file GPL_EXCEPTION.txt in this package. ** ***************************************************************************/ + #ifndef ROUNDPROGRESS_H #define ROUNDPROGRESS_H -#include <QtGui/QMainWindow> #include "ui_roundprogress.h" + #include <QtCore> #include <QtGui> #include <QtDebug> +#include <QtGui/QMainWindow> #include <QtCore/QFutureInterface> #include <QtCore/QFuture> -class MyInternalTask; - class MyInternalTask : public QObject { Q_OBJECT diff --git a/tests/manual/proparser/main.cpp b/tests/manual/proparser/main.cpp index 83e635265b1..c99fc16cac4 100644 --- a/tests/manual/proparser/main.cpp +++ b/tests/manual/proparser/main.cpp @@ -30,12 +30,13 @@ ** version 1.2, included in the file GPL_EXCEPTION.txt in this package. ** ***************************************************************************/ -#include <QtCore/QDebug> #include "proreader.h" #include "proitems.h" #include "proxml.h" +#include <QtCore/QDebug> + int main(int argc, char *argv[]) { ProReader pr; |