Add Checkbox to enable or disable the dialog to display the elpsaed time

of collection loading
This commit is contained in:
Laurent Trinques
2020-01-07 13:02:43 +01:00
parent 3492540d53
commit fbec9c9aa5
3 changed files with 20 additions and 5 deletions

View File

@@ -27,6 +27,7 @@
#include <QtConcurrent>
#include <QFutureWatcher>
#include <QMessageBox>
#include <QSettings>
/**
* @brief ElementsCollectionModel::ElementsCollectionModel
@@ -251,8 +252,13 @@ void ElementsCollectionModel::loadCollections(bool common_collection, bool custo
emit loadingProgressValue(futur.progressValue());
}
int ms = t.elapsed();
QSettings settings;
if (settings.value("m_use_timer").toBool())
{
QMessageBox::about(nullptr, tr("Chargement collection d'élément"), tr("Le chargement de la collection d'éléments à été éffectué en %1 ms").arg(ms));
}
}
/**