diff --git a/eepromwindow.cpp b/eepromwindow.cpp index cc69d29..555641a 100644 --- a/eepromwindow.cpp +++ b/eepromwindow.cpp @@ -64,7 +64,7 @@ EEPROMWindow::EEPROMWindow(QStringList eepromLines, QWidget *parent) : break; } - connect(edit, SIGNAL(textChanged(QString)), this, SLOT(lineChanged(QString))); + connect(edit, &QLineEdit::textChanged, this, &EEPROMWindow::lineChanged); line->addWidget(label); line->addWidget(edit); diff --git a/mainwindow.cpp b/mainwindow.cpp index a6c0fde..c6c28b0 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -869,7 +869,7 @@ void MainWindow::EEPROMSettingReceived(QString esetting) void MainWindow::receivedError() { //This should be raised if "!!" received - ErrorWindow errorwindow(this, tr("Hardware failure"), 3); + ErrorWindow errorwindow(this, tr("Hardware failure"), 2); errorwindow.exec(); } @@ -879,7 +879,7 @@ void MainWindow::receivedSDDone() ui->progressBar->setValue(0); if(trayIconEnabled && (this->isMinimized() || this->isHidden())) trayIcon->showMessage(tr("Done"), tr("Finished printing")); - ui->filename->setText(""); + ui->filename->setText(tr("Filename:")); ui->fileBox->setDisabled(true); }