diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 6e26465..04f6c99 100755 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -155,16 +155,43 @@ void MainWindow::retranslateMiningTab() { return; } - auto button1 = tab->findChild("stopmining"); + auto button1 = tab->template findChild("stopmining"); if(button1 != nullptr) { - DEBUG("found stop mining button"); + DEBUG("found stop mining button " << button1->objectName()); button1->setText( QObject::tr("Stop Mining") ); } - auto button2 = tab->findChild("startmining"); + auto button2 = tab->template findChild("startmining"); if(button2 != nullptr) { - DEBUG("found start mining button"); + DEBUG("found start mining button " << button2->objectName()); button2->setText( QObject::tr("Start Mining") ); + button2->setObjectName("startmining"); + } + + auto label2 = tab->findChild("mininglabel2"); + if(label2 != nullptr) { + DEBUG("found mininglabel2"); + label2->setText( QObject::tr("Mining threads") ); + } + auto label3 = tab->findChild("mininglabel3"); + if(label3 != nullptr) { + label3->setText( QObject::tr("Local Hashrate (hashes/sec)") ); + } + auto label4 = tab->findChild("mininglabel4"); + if(label4 != nullptr) { + label4->setText( QObject::tr("Network Hashrate (hashes/sec)") ); + } + auto label5 = tab->findChild("mininglabel5"); + if(label5 != nullptr) { + label5->setText( QObject::tr("Difficulty") ); + } + auto label6 = tab->findChild("mininglabel6"); + if(label6 != nullptr) { + label6->setText( QObject::tr("Estimated Hours To Find A Block") ); + } + auto label7 = tab->findChild("mininglabel7"); + if(label7 != nullptr) { + label7->setText( QObject::tr("Select the number of threads to mine with:") ); } auto combo = tab->findChild("genproclimit"); @@ -1525,6 +1552,13 @@ void MainWindow::setupMiningTab() { auto label5 = new QLabel(tr("Difficulty"), tab); auto label6 = new QLabel(tr("Estimated Hours To Find A Block"), tab); auto label7 = new QLabel(tr("Select the number of threads to mine with:"), tab); + label2->setObjectName("mininglabel2"); + label3->setObjectName("mininglabel3"); + label4->setObjectName("mininglabel4"); + label5->setObjectName("mininglabel5"); + label6->setObjectName("mininglabel6"); + label7->setObjectName("mininglabel7"); + auto combo = new QComboBox(tab); combo->setObjectName("genproclimit");