convert to new connect api

wilder-5.14
Montel Laurent 12 years ago
parent 932506de6a
commit bdcc8591f3
  1. 12
      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);
}
}

Loading…
Cancel
Save