Minor refactoring

This commit is contained in:
NeoTheFox 2015-03-28 21:39:20 +03:00
parent ce33d5a804
commit 169cb07d28
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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);
}