Minor refactoring
This commit is contained in:
parent
ce33d5a804
commit
169cb07d28
@ -64,7 +64,7 @@ EEPROMWindow::EEPROMWindow(QStringList eepromLines, QWidget *parent) :
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
connect(edit, SIGNAL(textChanged(QString)), this, SLOT(lineChanged(QString)));
|
connect(edit, &QLineEdit::textChanged, this, &EEPROMWindow::lineChanged);
|
||||||
|
|
||||||
line->addWidget(label);
|
line->addWidget(label);
|
||||||
line->addWidget(edit);
|
line->addWidget(edit);
|
||||||
|
|||||||
@ -869,7 +869,7 @@ void MainWindow::EEPROMSettingReceived(QString esetting)
|
|||||||
void MainWindow::receivedError()
|
void MainWindow::receivedError()
|
||||||
{
|
{
|
||||||
//This should be raised if "!!" received
|
//This should be raised if "!!" received
|
||||||
ErrorWindow errorwindow(this, tr("Hardware failure"), 3);
|
ErrorWindow errorwindow(this, tr("Hardware failure"), 2);
|
||||||
errorwindow.exec();
|
errorwindow.exec();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -879,7 +879,7 @@ void MainWindow::receivedSDDone()
|
|||||||
ui->progressBar->setValue(0);
|
ui->progressBar->setValue(0);
|
||||||
if(trayIconEnabled && (this->isMinimized() || this->isHidden()))
|
if(trayIconEnabled && (this->isMinimized() || this->isHidden()))
|
||||||
trayIcon->showMessage(tr("Done"), tr("Finished printing"));
|
trayIcon->showMessage(tr("Done"), tr("Finished printing"));
|
||||||
ui->filename->setText("");
|
ui->filename->setText(tr("Filename:"));
|
||||||
ui->fileBox->setDisabled(true);
|
ui->fileBox->setDisabled(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user