From kde-commits Fri Oct 31 22:05:52 2014 From: Montel Laurent Date: Fri, 31 Oct 2014 22:05:52 +0000 To: kde-commits Subject: [plasma-workspace] ktimezoned: convert to new connect api Message-Id: X-MARC-Message: https://marc.info/?l=kde-commits&m=141479316707511 Git commit bdcc8591f3abac5b43a281b0cad86a6c5ea25dc6 by Montel Laurent. Committed on 31/10/2014 at 07:58. Pushed by mlaurent into branch 'master'. convert to new connect api M +6 -6 ktimezoned/ktimezoned.cpp http://commits.kde.org/plasma-workspace/bdcc8591f3abac5b43a281b0cad86a6c5ea= 25dc6 diff --git a/ktimezoned/ktimezoned.cpp b/ktimezoned/ktimezoned.cpp index 9afda6e..d36b09f 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(updateLoca= lZone())); - connect(m_dirWatch, SIGNAL(deleted(const QString&)), SLOT(updateLo= calZone())); - connect(m_dirWatch, SIGNAL(created(const QString&)), SLOT(updateLo= calZone())); + connect(m_dirWatch, &KDirWatch::dirty, this, &KTimeZoned::updateLo= calZone); + connect(m_dirWatch, &KDirWatch::deleted, this, &KTimeZoned::update= LocalZone); + connect(m_dirWatch, &KDirWatch::created, this, &KTimeZoned::update= LocalZone); } = if (!m_zoneTabWatch && findZoneTab(m_zoneTab)) { @@ -102,9 +102,9 @@ void KTimeZoned::init(bool restart) m_zoneTabWatch =3D new KDirWatch(this); m_zoneTabWatch->addDir(m_zoneinfoDir, KDirWatch::WatchFiles); = - connect(m_dirWatch, SIGNAL(dirty(const QString&)), SLOT(updateLoca= lZone())); - connect(m_dirWatch, SIGNAL(created(const QString&)), SLOT(updateLo= calZone())); - connect(m_dirWatch, SIGNAL(deleted(const QString&)), SLOT(updateLo= calZone())); + connect(m_dirWatch, &KDirWatch::dirty, this, &KTimeZoned::updateLo= calZone); + connect(m_dirWatch, &KDirWatch::created, this, &KTimeZoned::update= LocalZone); + connect(m_dirWatch, &KDirWatch::deleted, this, &KTimeZoned::update= LocalZone); } } =