Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
Akregator
Commits
6bd05c73
Commit
6bd05c73
authored
Jun 21, 2021
by
Laurent Montel
😁
Browse files
Use std::chrono_literals
parent
abc8c8f7
Pipeline
#66885
passed with stage
in 9 minutes and 21 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
plugins/mk4storage/storagemk4impl.cpp
View file @
6bd05c73
...
...
@@ -19,6 +19,9 @@
#include <QDateTime>
#include <QDir>
#include <QStandardPaths>
#include <chrono>
using
namespace
std
::
chrono_literals
;
class
Akregator
::
Backend
::
StorageMK4Impl
::
StorageMK4ImplPrivate
{
...
...
@@ -260,7 +263,7 @@ void Akregator::Backend::StorageMK4Impl::markDirty()
if
(
!
d
->
modified
)
{
d
->
modified
=
true
;
// commit changes after 3 seconds
QTimer
::
singleShot
(
3
000
,
this
,
&
StorageMK4Impl
::
slotCommit
);
QTimer
::
singleShot
(
3
s
,
this
,
&
StorageMK4Impl
::
slotCommit
);
}
}
...
...
src/articlejobs.cpp
View file @
6bd05c73
...
...
@@ -20,6 +20,9 @@
#include <vector>
#include <cassert>
#include <chrono>
using
namespace
std
::
chrono_literals
;
using
namespace
Akregator
;
...
...
@@ -42,7 +45,7 @@ void ArticleDeleteJob::appendArticleId(const ArticleId &id)
void
ArticleDeleteJob
::
start
()
{
QTimer
::
singleShot
(
20
,
this
,
&
ArticleDeleteJob
::
doStart
);
QTimer
::
singleShot
(
20
ms
,
this
,
&
ArticleDeleteJob
::
doStart
);
}
void
ArticleDeleteJob
::
doStart
()
...
...
@@ -93,7 +96,7 @@ void ArticleModifyJob::setKeep(const ArticleId &id, bool keep)
void
ArticleModifyJob
::
start
()
{
QTimer
::
singleShot
(
20
,
this
,
&
ArticleModifyJob
::
doStart
);
QTimer
::
singleShot
(
20
ms
,
this
,
&
ArticleModifyJob
::
doStart
);
}
void
ArticleModifyJob
::
doStart
()
...
...
@@ -169,7 +172,7 @@ ArticleListJob::ArticleListJob(TreeNode *p)
void
ArticleListJob
::
start
()
{
QTimer
::
singleShot
(
20
,
this
,
&
ArticleListJob
::
doList
);
QTimer
::
singleShot
(
20
ms
,
this
,
&
ArticleListJob
::
doList
);
}
void
ArticleListJob
::
doList
()
...
...
src/subscription/subscriptionlistjobs.cpp
View file @
6bd05c73
...
...
@@ -16,6 +16,9 @@
#include <QDebug>
#include <QTimer>
#include <chrono>
using
namespace
std
::
chrono_literals
;
using
namespace
Akregator
;
...
...
@@ -41,7 +44,7 @@ void MoveSubscriptionJob::setDestination(uint folder, uint afterChild)
void
MoveSubscriptionJob
::
start
()
{
QTimer
::
singleShot
(
20
,
this
,
&
MoveSubscriptionJob
::
doMove
);
QTimer
::
singleShot
(
20
ms
,
this
,
&
MoveSubscriptionJob
::
doMove
);
}
void
MoveSubscriptionJob
::
doMove
()
...
...
@@ -99,7 +102,7 @@ void RenameSubscriptionJob::setName(const QString &name)
void
RenameSubscriptionJob
::
start
()
{
QTimer
::
singleShot
(
20
,
this
,
&
RenameSubscriptionJob
::
doRename
);
QTimer
::
singleShot
(
20
ms
,
this
,
&
RenameSubscriptionJob
::
doRename
);
}
void
RenameSubscriptionJob
::
doRename
()
...
...
@@ -127,7 +130,7 @@ void DeleteSubscriptionJob::setSubscriptionId(uint id)
void
DeleteSubscriptionJob
::
start
()
{
QTimer
::
singleShot
(
20
,
this
,
&
DeleteSubscriptionJob
::
doDelete
);
QTimer
::
singleShot
(
20
ms
,
this
,
&
DeleteSubscriptionJob
::
doDelete
);
}
void
DeleteSubscriptionJob
::
doDelete
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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