Commit cb266b9c authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

USe std::chrono_literals here

parent 044e91df
Pipeline #102134 passed with stage
in 5 minutes and 40 seconds
......@@ -432,7 +432,7 @@ KMComposerWin::KMComposerWin(const KMime::Message::Ptr &aMsg,
if (KMailSettings::self()->showForgottenAttachmentWarning()) {
mVerifyMissingAttachment = new QTimer(this);
mVerifyMissingAttachment->setSingleShot(true);
mVerifyMissingAttachment->setInterval(1000 * 5);
mVerifyMissingAttachment->setInterval(5s);
connect(mVerifyMissingAttachment, &QTimer::timeout, this, &KMComposerWin::slotVerifyMissingAttachmentTimeout);
}
connect(attachmentController, &KMail::AttachmentController::fileAttached, mAttachmentMissing, &AttachmentMissingWarning::slotFileAttached);
......
......@@ -114,7 +114,9 @@ using KMail::MailServiceImpl;
#include "userfeedback/kmailuserfeedbackprovider.h"
#include <KUserFeedback/Provider>
#endif
#include <chrono>
using namespace std::chrono_literals;
//#define DEBUG_SCHEDULER 1
using namespace MailCommon;
......@@ -1135,9 +1137,9 @@ void KMKernel::init()
mBackgroundTasksTimer->setSingleShot(true);
connect(mBackgroundTasksTimer, &QTimer::timeout, this, &KMKernel::slotRunBackgroundTasks);
#ifdef DEBUG_SCHEDULER // for debugging, see jobscheduler.h
mBackgroundTasksTimer->start(10000); // 10s, singleshot
mBackgroundTasksTimer->start(10s); // 10s, singleshot
#else
mBackgroundTasksTimer->start(5 * 60000); // 5 minutes, singleshot
mBackgroundTasksTimer->start(5min); // 5 minutes, singleshot
#endif
KCrash::setEmergencySaveFunction(kmCrashHandler);
......
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