mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-24 11:20:52 +01:00
Add Checkbox to enable or disable the dialog to display the elpsaed time
of collection loading
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user