|
|
@ -155,16 +155,43 @@ void MainWindow::retranslateMiningTab() { |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
auto button1 = tab->findChild<QPushButton *>("stopmining"); |
|
|
|
auto button1 = tab->template findChild<QPushButton *>("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<QPushButton *>("startmining"); |
|
|
|
auto button2 = tab->template findChild<QPushButton *>("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<QLabel *>("mininglabel2"); |
|
|
|
if(label2 != nullptr) { |
|
|
|
DEBUG("found mininglabel2"); |
|
|
|
label2->setText( QObject::tr("Mining threads") ); |
|
|
|
} |
|
|
|
auto label3 = tab->findChild<QLabel *>("mininglabel3"); |
|
|
|
if(label3 != nullptr) { |
|
|
|
label3->setText( QObject::tr("Local Hashrate (hashes/sec)") ); |
|
|
|
} |
|
|
|
auto label4 = tab->findChild<QLabel *>("mininglabel4"); |
|
|
|
if(label4 != nullptr) { |
|
|
|
label4->setText( QObject::tr("Network Hashrate (hashes/sec)") ); |
|
|
|
} |
|
|
|
auto label5 = tab->findChild<QLabel *>("mininglabel5"); |
|
|
|
if(label5 != nullptr) { |
|
|
|
label5->setText( QObject::tr("Difficulty") ); |
|
|
|
} |
|
|
|
auto label6 = tab->findChild<QLabel *>("mininglabel6"); |
|
|
|
if(label6 != nullptr) { |
|
|
|
label6->setText( QObject::tr("Estimated Hours To Find A Block") ); |
|
|
|
} |
|
|
|
auto label7 = tab->findChild<QLabel *>("mininglabel7"); |
|
|
|
if(label7 != nullptr) { |
|
|
|
label7->setText( QObject::tr("Select the number of threads to mine with:") ); |
|
|
|
} |
|
|
|
|
|
|
|
auto combo = tab->findChild<QComboBox *>("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"); |
|
|
|
|
|
|
|