From 72a05e138ec579cd567939eb0b33b0ea476820fb Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 20 Jun 2022 16:25:54 +0200 Subject: Fix deprecation warnings where possible, make remaining ones -Wno-error --- src/speedcheck.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/speedcheck.cpp') 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()); -- cgit v1.2.3-55-g7522