From cf11b696431d26920f54598c8f03f0a5cf822ffa Mon Sep 17 00:00:00 2001 From: hjk Date: Tue, 2 Dec 2008 16:19:05 +0100 Subject: more code cosmetics --- tests/manual/dockwidgets/main.cpp | 16 ++-------------- tests/manual/dockwidgets/mainwindow.cpp | 19 ++++--------------- tests/manual/dockwidgets/mainwindow.h | 14 +------------- 3 files changed, 7 insertions(+), 42 deletions(-) (limited to 'tests/manual/dockwidgets') 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 #include "mainwindow.h" +#include + 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 #include "qdockarrows.h" #include "mainwindow.h" +#include + 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 -- cgit v1.2.3