Commit 8c3174ec authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use more std::chrono_literals

parent 2dc0ae3c
Pipeline #76758 passed with stage
in 42 minutes and 18 seconds
......@@ -1880,7 +1880,7 @@ void ViewerPrivate::update(MimeTreeParser::UpdateMode updateMode)
saveRelativePosition();
updateReaderWin();
} else if (mUpdateReaderWinTimer.isActive()) {
mUpdateReaderWinTimer.setInterval(150);
mUpdateReaderWinTimer.setInterval(150ms);
} else {
mUpdateReaderWinTimer.start(0);
}
......
......@@ -12,7 +12,9 @@
#include <QTimer>
#include <QAction>
#include <chrono>
using namespace std::chrono_literals;
using namespace MessageViewer;
OpenSavedFileFolderWidget::OpenSavedFileFolderWidget(QWidget *parent)
......@@ -21,7 +23,7 @@ OpenSavedFileFolderWidget::OpenSavedFileFolderWidget(QWidget *parent)
, mShowFolderAction(new QAction(i18nc("@action", "Open folder where attachment was saved"), this))
{
mTimer->setSingleShot(true);
mTimer->setInterval(5000); // 5 seconds
mTimer->setInterval(5s); // 5 seconds
connect(mTimer, &QTimer::timeout, this, &OpenSavedFileFolderWidget::slotTimeOut);
setVisible(false);
setCloseButtonVisible(true);
......
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