Refactoring

Converted old signals and slots to new style
Cleanup
This commit is contained in:
NeoTheFox 2015-03-21 01:11:50 +03:00
parent f38e1bf069
commit 5f1c9d68f7
2 changed files with 3 additions and 5 deletions

View File

@ -95,9 +95,8 @@ MainWindow::MainWindow(QWidget *parent) :
serialupdate();
//Internal signal-slots
connect(statusTimer, SIGNAL(timeout()), this, SLOT(checkStatus()));
connect(progressSDTimer, SIGNAL(timeout()), this, SLOT(checkSDStatus()));
connect(this, SIGNAL(eepromReady()), this, SLOT(openEEPROMeditor()));
connect(statusTimer, &QTimer::timeout, this, &MainWindow::checkStatus);
connect(progressSDTimer, &QTimer::timeout, this, &MainWindow::checkSDStatus);
//Register all the types
qRegisterMetaType<TemperatureReadings>("TemperatureReadings");
@ -708,7 +707,7 @@ void MainWindow::initSDprinting(QStringList sdFiles)
{
SDWindow sdwindow(sdFiles, this);
connect(&sdwindow, SIGNAL(fileSelected(QString)), this, SLOT(selectSDfile(QString)));
connect(&sdwindow, &SDWindow::fileSelected, this, &MainWindow::selectSDfile);
sdwindow.exec();
}

View File

@ -148,7 +148,6 @@ private slots:
signals:
void sdReady();
void eepromReady();
void receivedData(QByteArray);
void startedReadingEEPROM();