Commit 29c511af authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use std::chrono_literals here too

parent ec99ee76
Pipeline #76642 passed with stage
in 23 minutes and 31 seconds
......@@ -57,7 +57,7 @@ ArchiveMailAgent::ArchiveMailAgent(const QString &id)
if (enabledAgent()) {
#ifdef DEBUG_ARCHIVEMAILAGENT
QTimer::singleShot(1000, mArchiveManager, &ArchiveMailManager::load);
QTimer::singleShot(1s, mArchiveManager, &ArchiveMailManager::load);
#else
QTimer::singleShot(5min, mArchiveManager, &ArchiveMailManager::load);
#endif
......
......@@ -55,7 +55,7 @@ MailMergeAgent::MailMergeAgent(const QString &id)
if (MailMergeAgentSettings::enabled()) {
#ifdef DEBUG_MailMergeAgent
QTimer::singleShot(1000, this, &MailMergeAgent::slotStartAgent);
QTimer::singleShot(1s, this, &MailMergeAgent::slotStartAgent);
#else
QTimer::singleShot(4min, this, &MailMergeAgent::slotStartAgent);
#endif
......
......@@ -64,7 +64,7 @@ SendLaterAgent::SendLaterAgent(const QString &id)
if (SendLaterAgentSettings::enabled()) {
#ifdef DEBUG_SENDLATERAGENT
QTimer::singleShot(1000, this, &SendLaterAgent::slotStartAgent);
QTimer::singleShot(1s, this, &SendLaterAgent::slotStartAgent);
#else
QTimer::singleShot(4min, this, &SendLaterAgent::slotStartAgent);
#endif
......
......@@ -189,6 +189,9 @@
#include <KDialogJobUiDelegate>
#include <KIO/CommandLauncherJob>
#include <chrono>
using namespace std::chrono_literals;
using MailTransport::Transport;
using MailTransport::TransportManager;
......@@ -3193,7 +3196,7 @@ void KMComposerWin::showAndActivateComposer()
void KMComposerWin::slotSpellCheckingStatus(const QString &status)
{
mStatusbarLabel->setText(status);
QTimer::singleShot(2000, this, &KMComposerWin::slotSpellcheckDoneClearStatus);
QTimer::singleShot(2s, this, &KMComposerWin::slotSpellcheckDoneClearStatus);
}
void KMComposerWin::slotSpellcheckDoneClearStatus()
......
......@@ -3920,7 +3920,7 @@ void KMMainWidget::updateHtmlMenuEntry()
void KMMainWidget::updateFolderMenu()
{
if (!CommonKernel->outboxCollectionFolder().isValid()) {
QTimer::singleShot(1000, this, &KMMainWidget::updateFolderMenu);
QTimer::singleShot(1s, this, &KMMainWidget::updateFolderMenu);
return;
}
......@@ -4797,5 +4797,5 @@ void KMMainWidget::setupUnifiedMailboxChecker()
connect(kmkernel, &KMKernel::incomingAccountsChanged, this, ask);
// Wait for a bit before asking so we at least have the window on screen
QTimer::singleShot(500, this, ask);
QTimer::singleShot(500ms, this, ask);
}
Markdown is supported
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