diff --git a/src/collection/collectionmodel.cpp b/src/collection/collectionmodel.cpp index a965b5de4..ec847fe54 100644 --- a/src/collection/collectionmodel.cpp +++ b/src/collection/collectionmodel.cpp @@ -24,6 +24,7 @@ #include #include #include +#include #include #include @@ -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 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();