Commit f25987d0 authored by Volker Krause's avatar Volker Krause Committed by Merge Service
Browse files

Port away from deprecated QDateTime::toTime_t()

parent 36fef148
Pipeline #157380 passed with stage
in 2 minutes and 31 seconds
......@@ -310,7 +310,7 @@ QVariant SortedActivitiesModel::data(const QModelIndex &index, int role) const
return QVariant(time);
} else {
const auto now = QDateTime::currentDateTime().toTime_t();
const auto now = QDateTime::currentDateTime().toSecsSinceEpoch();
if (time == 0)
return i18n("Used some time ago");
......
......@@ -291,7 +291,7 @@ void SwitcherBackend::onCurrentActivityChanged(const QString &id)
KConfig config(QStringLiteral("kactivitymanagerd-switcher"));
KConfigGroup times(&config, "LastUsed");
const auto now = QDateTime::currentDateTime().toTime_t();
const auto now = QDateTime::currentDateTime().toSecsSinceEpoch();
// Updating the time for the activity we just switched to
// in the case we do not power off properly, and on the next
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment