diff --git a/mainwindow.cpp b/mainwindow.cpp index 67f4764..c67a0b8 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -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"); @@ -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(); } diff --git a/mainwindow.h b/mainwindow.h index 09a7392..bb7a2ca 100644 --- a/mainwindow.h +++ b/mainwindow.h @@ -148,7 +148,6 @@ private slots: signals: void sdReady(); - void eepromReady(); void receivedData(QByteArray); void startedReadingEEPROM();