forked from qt-creator/qt-creator
Utils: Modernize connections
Change-Id: I4650abc84e7c82a4054197319f6c849af9e5b8ce Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -60,7 +60,7 @@ void StatusLabel::showStatusMessage(const QString &message, int timeoutMS)
|
||||
if (!m_timer) {
|
||||
m_timer = new QTimer(this);
|
||||
m_timer->setSingleShot(true);
|
||||
connect(m_timer, SIGNAL(timeout()), this, SLOT(slotTimeout()));
|
||||
connect(m_timer, &QTimer::timeout, this, &StatusLabel::slotTimeout);
|
||||
}
|
||||
m_timer->start(timeoutMS);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user