[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [plasma-workspace] ktimezoned: convert to new connect api
From: Montel Laurent <montel () kde ! org>
Date: 2014-10-31 22:05:52
Message-ID: E1XkKKO-000300-Tn () scm ! kde ! org
[Download RAW message or body]
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/bdcc8591f3abac5b43a281b0cad86a6c5ea25dc6
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(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);
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic