summaryrefslogtreecommitdiffstats
path: root/src/speedcheck.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/speedcheck.cpp')
-rw-r--r--src/speedcheck.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/speedcheck.cpp b/src/speedcheck.cpp
index b4dd718..aa02d47 100644
--- a/src/speedcheck.cpp
+++ b/src/speedcheck.cpp
@@ -21,7 +21,6 @@ SpeedCheck::SpeedCheck(QString fileName)
connect(_ui->btnQuit, SIGNAL(clicked(bool)), this, SLOT(quitClicked(bool)));
_timer.setInterval(200);
connect(&_timer, SIGNAL(timeout()), this, SLOT(updateTimer()));
- qsrand((uint)QCoreApplication::applicationPid());
}
SpeedCheck::~SpeedCheck()
@@ -39,7 +38,7 @@ void SpeedCheck::startClicked(bool)
{
QFile *file = new QFile(_fileName);
if (!file->open(QIODevice::ReadOnly)) {
- QMessageBox::critical(this, trUtf8("Error"), trUtf8("Could not open %1 for reading.").arg(_fileName));
+ QMessageBox::critical(this, tr("Error"), tr("Could not open %1 for reading.").arg(_fileName));
return;
}
_ui->picCpu->setDataSource(new CpuLoad());