Diffstat (limited to 'noncore/settings/sysinfo/benchmarkinfo.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/settings/sysinfo/benchmarkinfo.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/settings/sysinfo/benchmarkinfo.cpp b/noncore/settings/sysinfo/benchmarkinfo.cpp index 2a269b8..ac6e1fa 100644 --- a/noncore/settings/sysinfo/benchmarkinfo.cpp +++ b/noncore/settings/sysinfo/benchmarkinfo.cpp | |||
@@ -13,28 +13,28 @@ | |||
13 | ** | 13 | ** |
14 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 14 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
15 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 15 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
16 | ** | 16 | ** |
17 | **********************************************************************/ | 17 | **********************************************************************/ |
18 | 18 | ||
19 | #include "benchmarkinfo.h" | 19 | #include "benchmarkinfo.h" |
20 | 20 | ||
21 | /* OPIE */ | 21 | /* OPIE */ |
22 | #include <opie2/odebug.h> | 22 | #include <opie2/odebug.h> |
23 | #include <opie2/ostorageinfo.h> | 23 | #include <opie2/ostorageinfo.h> |
24 | #include <opie2/olistview.h> | 24 | #include <opie2/olistview.h> |
25 | #include <opie2/oresource.h> | ||
25 | #include <qpe/qpeapplication.h> | 26 | #include <qpe/qpeapplication.h> |
26 | #include <qpe/qcopenvelope_qws.h> | 27 | #include <qpe/qcopenvelope_qws.h> |
27 | #include <qpe/qpedecoration_qws.h> | 28 | #include <qpe/qpedecoration_qws.h> |
28 | #include <qpe/resource.h> | ||
29 | #include <qpe/config.h> | 29 | #include <qpe/config.h> |
30 | using namespace Opie::Core; | 30 | using namespace Opie::Core; |
31 | using namespace Opie::Ui; | 31 | using namespace Opie::Ui; |
32 | 32 | ||
33 | /* QT */ | 33 | /* QT */ |
34 | #include <qclipboard.h> | 34 | #include <qclipboard.h> |
35 | #include <qcolor.h> | 35 | #include <qcolor.h> |
36 | #include <qcombobox.h> | 36 | #include <qcombobox.h> |
37 | #include <qdirectpainter_qws.h> | 37 | #include <qdirectpainter_qws.h> |
38 | #include <qfile.h> | 38 | #include <qfile.h> |
39 | #include <qtextstream.h> | 39 | #include <qtextstream.h> |
40 | #include <qfiledialog.h> | 40 | #include <qfiledialog.h> |
@@ -320,25 +320,25 @@ int BenchmarkInfo::gfxRendering( int seconds ) | |||
320 | br1.setStyle( SolidPattern ); | 320 | br1.setStyle( SolidPattern ); |
321 | t.restart(); | 321 | t.restart(); |
322 | stop = t.elapsed() + seconds*1000; | 322 | stop = t.elapsed() + seconds*1000; |
323 | 323 | ||
324 | while ( t.elapsed() < stop ) | 324 | while ( t.elapsed() < stop ) |
325 | { | 325 | { |
326 | int k = rand() % 9; | 326 | int k = rand() % 9; |
327 | br1.setColor( QColor( rr[ k ], gg[ k ], bb[ k ] ) ); | 327 | br1.setColor( QColor( rr[ k ], gg[ k ], bb[ k ] ) ); |
328 | bpw.p.fillRect( rand()%w, rand()%h, rand()%w, rand()%h, br1 ); | 328 | bpw.p.fillRect( rand()%w, rand()%h, rand()%w, rand()%h, br1 ); |
329 | ++loops; | 329 | ++loops; |
330 | } | 330 | } |
331 | 331 | ||
332 | QPixmap p = Resource::loadPixmap( "sysinfo/pattern" ); | 332 | QPixmap p = Opie::Core::OResource::loadPixmap( "sysinfo/pattern" ); |
333 | t.restart(); | 333 | t.restart(); |
334 | stop = t.elapsed() + seconds*1000; | 334 | stop = t.elapsed() + seconds*1000; |
335 | 335 | ||
336 | while ( t.elapsed() < stop ) | 336 | while ( t.elapsed() < stop ) |
337 | { | 337 | { |
338 | bpw.p.drawPixmap( rand()%w, rand()%h, p ); | 338 | bpw.p.drawPixmap( rand()%w, rand()%h, p ); |
339 | ++loops; | 339 | ++loops; |
340 | } | 340 | } |
341 | 341 | ||
342 | return loops; | 342 | return loops; |
343 | 343 | ||
344 | } | 344 | } |