Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Plasma Desktop
Commits
f25987d0
Commit
f25987d0
authored
Mar 30, 2022
by
Volker Krause
Committed by
Merge Service
Mar 31, 2022
Browse files
Port away from deprecated QDateTime::toTime_t()
parent
36fef148
Pipeline
#157380
passed with stage
in 2 minutes and 31 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
imports/activitymanager/sortedactivitiesmodel.cpp
View file @
f25987d0
...
...
@@ -310,7 +310,7 @@ QVariant SortedActivitiesModel::data(const QModelIndex &index, int role) const
return
QVariant
(
time
);
}
else
{
const
auto
now
=
QDateTime
::
currentDateTime
().
to
Time_t
();
const
auto
now
=
QDateTime
::
currentDateTime
().
to
SecsSinceEpoch
();
if
(
time
==
0
)
return
i18n
(
"Used some time ago"
);
...
...
imports/activitymanager/switcherbackend.cpp
View file @
f25987d0
...
...
@@ -291,7 +291,7 @@ void SwitcherBackend::onCurrentActivityChanged(const QString &id)
KConfig
config
(
QStringLiteral
(
"kactivitymanagerd-switcher"
));
KConfigGroup
times
(
&
config
,
"LastUsed"
);
const
auto
now
=
QDateTime
::
currentDateTime
().
to
Time_t
();
const
auto
now
=
QDateTime
::
currentDateTime
().
to
SecsSinceEpoch
();
// Updating the time for the activity we just switched to
// in the case we do not power off properly, and on the next
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment