CollectionModel: Use chrono literals

This commit is contained in:
Jonas Kvinge 2024-08-25 02:07:31 +02:00
parent 9334fe9f24
commit b2c862e7d5
1 changed files with 5 additions and 2 deletions

View File

@ -24,6 +24,7 @@
#include <algorithm>
#include <utility>
#include <optional>
#include <chrono>
#include <QObject>
#include <QtGlobal>
@ -75,6 +76,8 @@
#include "covermanager/albumcoverloader.h"
#include "settings/collectionsettingspage.h"
using namespace std::chrono_literals;
const int CollectionModel::kPrettyCoverSize = 32;
namespace {
constexpr char kPixmapDiskCacheDir[] = "pixmapcache";
@ -133,11 +136,11 @@ CollectionModel::CollectionModel(SharedPtr<CollectionBackend> backend, Applicati
backend_->UpdateTotalAlbumCountAsync();
timer_reload_->setSingleShot(true);
timer_reload_->setInterval(300);
timer_reload_->setInterval(300ms);
QObject::connect(timer_reload_, &QTimer::timeout, this, &CollectionModel::Reload);
timer_update_->setSingleShot(false);
timer_update_->setInterval(20);
timer_update_->setInterval(20ms);
QObject::connect(timer_update_, &QTimer::timeout, this, &CollectionModel::ProcessUpdate);
ReloadSettings();