From 56daa84a14651e822f8bbfc1f814357f74dfac0b Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Fri, 18 Aug 2023 11:49:34 +0200 Subject: [PATCH] Streamlined the connects (without any whitespace) to silence clang. --- mainwindow.cpp | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 02918c7..a30b38b 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -43,17 +43,15 @@ MainWindow::MainWindow(Worker *worker, QWidget *parent) m_exitTimer->setSingleShot(true); m_exitTimer->start(1800 * 1000); - connect(ui->exit, SIGNAL(clicked()), this, SLOT(onQuit())); - connect(m_worker, SIGNAL(disableExit()), this, SLOT(onDisableExit())); - connect(m_worker, SIGNAL(enableExit()), this, SLOT(onEnableExit())); - connect(m_worker, SIGNAL(stopStartTimer()), this, SLOT(onStopStartTimer())); - connect(m_worker, SIGNAL(restartExitTimer()), this, SLOT(onRestartExitTimer())); - connect(m_worker, SIGNAL(appendText(QString, QString)), this, SLOT(onAppendText(QString, QString))); - connect(m_worker, SIGNAL(showErrorMessage(QString,QString)), this, SLOT(onShowErrorMessage(QString,QString))); - connect(m_worker, SIGNAL(replaceLast(QString, QString)), this, SLOT(onReplaceLast(QString,QString))); - - ui->updateStatus->setText(lst.join('\n')); - ui->updateStatus->setEnabled(true); + connect(ui->exit, SIGNAL(clicked()),this,SLOT(onQuit())); + connect(m_worker, SIGNAL(disableExit()),this,SLOT(onDisableExit())); + connect(m_worker, SIGNAL(enableExit()),this,SLOT(onEnableExit())); + connect(m_worker, SIGNAL(stopStartTimer()),this,SLOT(onStopStartTimer())); + connect(m_worker, SIGNAL(restartExitTimer()),this,SLOT(onRestartExitTimer())); + connect(m_worker, SIGNAL(appendText(QString,QString)),this,SLOT(onAppendText(QString,QString))); + connect(m_worker, SIGNAL(showErrorMessage(QString,QString)),this, SLOT(onShowErrorMessage(QString,QString))); + connect(m_worker, SIGNAL(replaceLast(QString,QString)),this,SLOT(onReplaceLast(QString,QString))); + connect(m_worker, SIGNAL(replaceLast(QStringList,QString)),this, SLOT(onReplaceLast(QStringList,QString))); } MainWindow::~MainWindow() {