From bdcc8591f3abac5b43a281b0cad86a6c5ea25dc6 Mon Sep 17 00:00:00 2001 From: Montel Laurent Date: Fri, 31 Oct 2014 08:58:09 +0100 Subject: [PATCH] convert to new connect api --- ktimezoned/ktimezoned.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ktimezoned/ktimezoned.cpp b/ktimezoned/ktimezoned.cpp index 9afda6e60..d36b09f45 100644 --- a/ktimezoned/ktimezoned.cpp +++ b/ktimezoned/ktimezoned.cpp @@ -86,9 +86,9 @@ void KTimeZoned::init(bool restart) m_dirWatch->addFile(QStringLiteral("/etc/timezone")); m_dirWatch->addFile(QStringLiteral("/etc/localtime")); - connect(m_dirWatch, SIGNAL(dirty(const QString&)), SLOT(updateLocalZone())); - connect(m_dirWatch, SIGNAL(deleted(const QString&)), SLOT(updateLocalZone())); - connect(m_dirWatch, SIGNAL(created(const QString&)), SLOT(updateLocalZone())); + connect(m_dirWatch, &KDirWatch::dirty, this, &KTimeZoned::updateLocalZone); + connect(m_dirWatch, &KDirWatch::deleted, this, &KTimeZoned::updateLocalZone); + connect(m_dirWatch, &KDirWatch::created, this, &KTimeZoned::updateLocalZone); } if (!m_zoneTabWatch && findZoneTab(m_zoneTab)) { @@ -102,9 +102,9 @@ void KTimeZoned::init(bool restart) m_zoneTabWatch = new KDirWatch(this); m_zoneTabWatch->addDir(m_zoneinfoDir, KDirWatch::WatchFiles); - connect(m_dirWatch, SIGNAL(dirty(const QString&)), SLOT(updateLocalZone())); - connect(m_dirWatch, SIGNAL(created(const QString&)), SLOT(updateLocalZone())); - connect(m_dirWatch, SIGNAL(deleted(const QString&)), SLOT(updateLocalZone())); + connect(m_dirWatch, &KDirWatch::dirty, this, &KTimeZoned::updateLocalZone); + connect(m_dirWatch, &KDirWatch::created, this, &KTimeZoned::updateLocalZone); + connect(m_dirWatch, &KDirWatch::deleted, this, &KTimeZoned::updateLocalZone); } }