From 3440a45f736fbdddf787c81664e3dbb74f3e4b8b Mon Sep 17 00:00:00 2001 From: mickeyl Date: Wed, 15 Sep 2004 12:39:17 +0000 Subject: minor adjustments to button layout. release 1.1.1 --- diff --git a/noncore/settings/sysinfo/benchmarkinfo.cpp b/noncore/settings/sysinfo/benchmarkinfo.cpp index be7e4b6..fde032a 100644 --- a/noncore/settings/sysinfo/benchmarkinfo.cpp +++ b/noncore/settings/sysinfo/benchmarkinfo.cpp @@ -1,7 +1,7 @@ /********************************************************************** ** BenchmarkInfo ** -** A benchmark for Qt/Embedded +** A benchmark widget for Qt/Embedded ** ** Copyright (C) 2004 Michael Lauer ** Inspired by ZBench (C) 2002 Satoshi @@ -63,9 +63,6 @@ extern "C" #define DHRYSTONE_RUNS 20000000 #define TEST_DURATION 3 -#define BUFF_SIZE 8192 -#define FILE_SIZE 1024 * 1024 // 1Mb - //=========================================================================== class BenchmarkPaintWidget : public QWidget @@ -142,6 +139,9 @@ BenchmarkInfo::BenchmarkInfo( QWidget *parent, const char *name, int wFlags ) connect( startButton, SIGNAL( clicked() ), this, SLOT( run() ) ); vb->addWidget( tests, 2 ); + QHBoxLayout* hb = new QHBoxLayout( vb ); + hb->addWidget( startButton, 2 ); + QFile f( QPEApplication::qpeDir() + "/share/sysinfo/results" ); if ( f.open( IO_ReadOnly ) ) { @@ -158,13 +158,10 @@ BenchmarkInfo::BenchmarkInfo( QWidget *parent, const char *name, int wFlags ) machineCombo->insertItem( machline ); } - QHBoxLayout* hb = new QHBoxLayout( vb ); - hb->addWidget( new QLabel( tr( "Compare To:" ), this ) ); + hb->addWidget( new QLabel( tr( "Compare:" ), this ) ); hb->addWidget( machineCombo, 2 ); connect( machineCombo, SIGNAL( activated(int) ), this, SLOT( machineActivated(int) ) ); } - - vb->addWidget( startButton, 2 ); } @@ -195,7 +192,7 @@ void BenchmarkInfo::machineActivated( int index ) void BenchmarkInfo::run() { - startButton->setText( "> Don't touch! Running Tests! Don't touch! <" ); + startButton->setText( "> Don't touch! <" ); qApp->processEvents(); QTime t; @@ -396,14 +393,14 @@ void BenchmarkInfo::performFileTest( const QString& fname, OCheckListItem* item QString readUnit = "kB/s"; if ( readSpeed > 1024 ) { - readSpeed = readSpeed / 1024.0; + readSpeed /= 1024.0; readUnit = "MB/s"; } double writeSpeed = FILE_TEST_COUNT / ( write / 1000.0 ); QString writeUnit = "kb/s"; if ( writeSpeed > 1024 ) { - writeSpeed = writeSpeed / 1024.0; + writeSpeed /= 1024.0; writeUnit = "MB/s"; } item->setText( 1, QString().sprintf( "%.2f %s, %.2f %s", readSpeed, readUnit.latin1(), writeSpeed, writeUnit.latin1() ) ); diff --git a/noncore/settings/sysinfo/sysinfo.pro b/noncore/settings/sysinfo/sysinfo.pro index 58f6eb0..dd35563 100644 --- a/noncore/settings/sysinfo/sysinfo.pro +++ b/noncore/settings/sysinfo/sysinfo.pro @@ -29,6 +29,6 @@ DEPENDPATH += $(OPIEDIR)/include LIBS += -lqpe -lopiecore2 -lopieui2 DEFINES += UNIX TARGET = sysinfo -VERSION = 1.1.0 +VERSION = 1.1.1 include ( $(OPIEDIR)/include.pro ) diff --git a/share/sysinfo/results b/share/sysinfo/results index b34fc99..b53f1ea 100644 --- a/share/sysinfo/results +++ b/share/sysinfo/results @@ -1,4 +1,4 @@ - + n/a,n/a,n/a,n/a,n/a,n/a,n/a,n/a,n/a Sharp SL-5500 240010 dhrys,41.498 sec,88 char/sec,1786 gops/sec,50.123 kb/sec,41.7329 kb/sec,105.873 kb/sec @@ -28,3 +28,5 @@ M&N Ramses not,yet,contributed,please,mail,to,opie@handhelds.org SIEMENS SIMpad not,yet,contributed,please,mail,to,opie@handhelds.org +MASTERIA Beagle +not,yet,contributed,please,mail,to,opie@handhelds.org -- cgit v0.9.0.2