[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [kalarm] src: Remove deprecated calls
From:       David Jarvie <djarvie () kde ! org>
Date:       2016-10-30 18:14:02
Message-ID: E1c0ucM-0006Os-8q () code ! kde ! org
[Download RAW message or body]

Git commit 44b11257f49bf4e7b607e7a9079eb5ef1ac09402 by David Jarvie.
Committed on 30/10/2016 at 18:10.
Pushed by djarvie into branch 'master'.

Remove deprecated calls

M  +1    -1    src/kalarmapp.cpp
M  +1    -1    src/traywindow.cpp

http://commits.kde.org/kalarm/44b11257f49bf4e7b607e7a9079eb5ef1ac09402

diff --git a/src/kalarmapp.cpp b/src/kalarmapp.cpp
index d72ea8c..1e948c5 100644
--- a/src/kalarmapp.cpp
+++ b/src/kalarmapp.cpp
@@ -773,7 +773,7 @@ void KAlarmApp::checkNextDueAlarm()
         return;   // there are no alarms pending
     KDateTime nextDt = \
nextEvent->nextTrigger(KAEvent::ALL_TRIGGER).effectiveKDateTime();  KDateTime now = \
                KDateTime::currentDateTime(Preferences::timeZone());
-    qint64 interval = now.secsTo_long(nextDt);
+    qint64 interval = now.secsTo(nextDt);
     qCDebug(KALARM_LOG) << "now:" << \
qPrintable(now.toString(QStringLiteral("%Y-%m-%d %H:%M %:Z"))) << ", next:" << \
qPrintable(nextDt.toString(QStringLiteral("%Y-%m-%d %H:%M %:Z"))) << ", due:" << \
interval;  if (interval <= 0)
     {
diff --git a/src/traywindow.cpp b/src/traywindow.cpp
index 86cb740..8bbeab3 100644
--- a/src/traywindow.cpp
+++ b/src/traywindow.cpp
@@ -281,7 +281,7 @@ void TrayWindow::updateStatus()
             if (event  &&  period > 0)
             {
                 KDateTime dt = \
                event->nextTrigger(KAEvent::ALL_TRIGGER).effectiveKDateTime();
-                qint64 delay = KDateTime::currentLocalDateTime().secsTo_long(dt);
+                qint64 delay = KDateTime::currentLocalDateTime().secsTo(dt);
                 delay -= static_cast<qint64>(period) * 60;   // delay until icon to \
be shown  active = (delay <= 0);
                 if (!active)


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic