-rw-r--r-- | development/performance/main.cpp | 12 | ||||
-rw-r--r-- | development/performance/opie-performance.control | 4 | ||||
-rw-r--r-- | development/performance/performance.pro | 4 | ||||
-rw-r--r-- | development/performance/performancetest.h | 1 |
4 files changed, 6 insertions, 15 deletions
diff --git a/development/performance/main.cpp b/development/performance/main.cpp index 8802777..41db9e9 100644 --- a/development/performance/main.cpp +++ b/development/performance/main.cpp | |||
@@ -1,33 +1,25 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. | 2 | ** Copyright (C) 2000-2002 Trolltech AS. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of the Qtopia Environment. | 4 | ** This file is part of the Qtopia Environment. |
5 | ** | 5 | ** |
6 | ** This file may be distributed and/or modified under the terms of the | 6 | ** This file may be distributed and/or modified under the terms of the |
7 | ** GNU General Public License version 2 as published by the Free Software | 7 | ** GNU General Public License version 2 as published by the Free Software |
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | 8 | ** Foundation and appearing in the file LICENSE.GPL included in the |
9 | ** packaging of this file. | 9 | ** packaging of this file. |
10 | ** | 10 | ** |
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | ** | 13 | ** |
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. |
15 | ** | 15 | ** |
16 | ** Contact info@trolltech.com if any conditions of this licensing are | 16 | ** Contact info@trolltech.com if any conditions of this licensing are |
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | 20 | ||
21 | #include "performancetest.h" | 21 | #include "performancetest.h" |
22 | 22 | ||
23 | #include <qpe/qpeapplication.h> | 23 | #include <opie2/oapplicationfactory.h> |
24 | 24 | ||
25 | int main( int argc, char ** argv ) | 25 | OPIE_EXPORT_APP( Opie::Core::OApplicationFactory<PerformanceTest> ) |
26 | { | ||
27 | QPEApplication a( argc, argv ); | ||
28 | |||
29 | PerformanceTest mw; | ||
30 | a.showMainWidget( &mw ); | ||
31 | |||
32 | return a.exec(); | ||
33 | } | ||
diff --git a/development/performance/opie-performance.control b/development/performance/opie-performance.control index 299fda2..89157f9 100644 --- a/development/performance/opie-performance.control +++ b/development/performance/opie-performance.control | |||
@@ -1,10 +1,10 @@ | |||
1 | Files: bin/performance apps/Applications/performance.desktop | 1 | Files: plugins/applications/libperformance.so* bin/performance apps/Applications/performance.desktop |
2 | Priority: optional | 2 | Priority: optional |
3 | Section: opie/other | 3 | Section: opie/other |
4 | Maintainer: Trolltech (www.trolltech.com) | 4 | Maintainer: Trolltech (www.trolltech.com) |
5 | Architecture: $CPU_ARCH | 5 | Architecture: $CPU_ARCH |
6 | Arch: $DEVICE_ARCH | 6 | Arch: $DEVICE_ARCH |
7 | Version: $QPE_VERSION-10 | 7 | Version: $QPE_VERSION-10 |
8 | Depends: qpe-libqtopia | 8 | Depends: opie-taskbar |
9 | Description: Graphics performance tester | 9 | Description: Graphics performance tester |
10 | Graphics performance tester for Qtopia. | 10 | Graphics performance tester for Qtopia. |
diff --git a/development/performance/performance.pro b/development/performance/performance.pro index ab3a51a..a7fc512 100644 --- a/development/performance/performance.pro +++ b/development/performance/performance.pro | |||
@@ -1,12 +1,10 @@ | |||
1 | TEMPLATE = app | 1 | CONFIG += qt quick-app |
2 | CONFIG += qt warn_on release | ||
3 | #DESTDIR = $(QPEDIR)/bin | ||
4 | HEADERS = performancetest.h | 2 | HEADERS = performancetest.h |
5 | SOURCES = main.cpp performancetest.cpp | 3 | SOURCES = main.cpp performancetest.cpp |
6 | INTERFACES = performancetestbase.ui | 4 | INTERFACES = performancetestbase.ui |
7 | TARGET = performance | 5 | TARGET = performance |
8 | INCLUDEPATH += $(OPIEDIR)/include | 6 | INCLUDEPATH += $(OPIEDIR)/include |
9 | DEPENDPATH += $(OPIEDIR)/include | 7 | DEPENDPATH += $(OPIEDIR)/include |
10 | LIBS += -lqpe -lqte | 8 | LIBS += -lqpe -lqte |
11 | 9 | ||
12 | include ( $(OPIEDIR)/include.pro ) | 10 | include ( $(OPIEDIR)/include.pro ) |
diff --git a/development/performance/performancetest.h b/development/performance/performancetest.h index c0a80c4..a747c3c 100644 --- a/development/performance/performancetest.h +++ b/development/performance/performancetest.h | |||
@@ -1,18 +1,19 @@ | |||
1 | 1 | ||
2 | #include "performancetestbase.h" | 2 | #include "performancetestbase.h" |
3 | 3 | ||
4 | class PerformanceTest : public PerformanceTestBase | 4 | class PerformanceTest : public PerformanceTestBase |
5 | { | 5 | { |
6 | Q_OBJECT | 6 | Q_OBJECT |
7 | public: | 7 | public: |
8 | PerformanceTest( QWidget *parent=0, const char *name=0, WFlags fl=0 ); | 8 | PerformanceTest( QWidget *parent=0, const char *name=0, WFlags fl=0 ); |
9 | static QString appName() { return QString::fromLatin1("performance"); } | ||
9 | 10 | ||
10 | protected slots: | 11 | protected slots: |
11 | void testClicked( int ); | 12 | void testClicked( int ); |
12 | void doTest(); | 13 | void doTest(); |
13 | 14 | ||
14 | private: | 15 | private: |
15 | QWidget *testWidget; | 16 | QWidget *testWidget; |
16 | QArray<bool> enabledTests; | 17 | QArray<bool> enabledTests; |
17 | }; | 18 | }; |
18 | 19 | ||