summaryrefslogtreecommitdiff
path: root/noncore
authormickeyl <mickeyl>2004-09-15 12:39:17 (UTC)
committer mickeyl <mickeyl>2004-09-15 12:39:17 (UTC)
commit3440a45f736fbdddf787c81664e3dbb74f3e4b8b (patch) (side-by-side diff)
tree6786fa4990a2b9c76cb3a22a68c25dc542db2de6 /noncore
parentbb7cd69b07a5d6e00a29b23dc8bfebc511d34891 (diff)
downloadopie-3440a45f736fbdddf787c81664e3dbb74f3e4b8b.zip
opie-3440a45f736fbdddf787c81664e3dbb74f3e4b8b.tar.gz
opie-3440a45f736fbdddf787c81664e3dbb74f3e4b8b.tar.bz2
minor adjustments to button layout. release 1.1.1
Diffstat (limited to 'noncore') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/sysinfo/benchmarkinfo.cpp19
-rw-r--r--noncore/settings/sysinfo/sysinfo.pro2
2 files changed, 9 insertions, 12 deletions
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 <mickey@vanille.de>
** Inspired by ZBench (C) 2002 Satoshi <af230533@im07.alpha-net.ne.jp>
@@ -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 )