Replace QDateTime::toTime_t() with QDateTime::toSecsSinceEpoch()

This commit is contained in:
Jonas Kvinge
2020-07-18 03:53:30 +02:00
parent 4140163ab2
commit f24b6a520c
9 changed files with 23 additions and 23 deletions

View File

@@ -66,7 +66,7 @@ bool GlobalShortcutBackendGSD::DoRegister() {
return false;
}
QDBusPendingReply<> reply = interface_->GrabMediaPlayerKeys(QCoreApplication::applicationName(), QDateTime::currentDateTime().toTime_t());
QDBusPendingReply<> reply = interface_->GrabMediaPlayerKeys(QCoreApplication::applicationName(), QDateTime::currentDateTime().toSecsSinceEpoch());
QDBusPendingCallWatcher *watcher = new QDBusPendingCallWatcher(reply, this);
NewClosure(watcher, SIGNAL(finished(QDBusPendingCallWatcher*)), this, SLOT(RegisterFinished(QDBusPendingCallWatcher*)), watcher);