From 169cb07d284f323334ae7ea742b9ddc0e5a32b87 Mon Sep 17 00:00:00 2001 From: NeoTheFox Date: Sat, 28 Mar 2015 21:39:20 +0300 Subject: [PATCH] Minor refactoring --- eepromwindow.cpp | 2 +- mainwindow.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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); }