Add option to switch between Qtxml or pugi xml. Add dialog to display the elpsaed time of collection loading.

This commit is contained in:
joshua
2020-01-04 15:59:27 +01:00
parent 6398feba0d
commit eb903a12b0
4 changed files with 53 additions and 22 deletions

View File

@@ -126,6 +126,8 @@ GeneralConfigurationPage::GeneralConfigurationPage(QWidget *parent) :
ui->m_custom_tbt_path_cb->setItemData(1, path, Qt::DisplayRole);
ui->m_custom_tbt_path_cb->blockSignals(false);
}
ui->m_use_pugi_xml->setChecked(settings.value("use_pugixml").toBool());
fillLang();
}
@@ -234,6 +236,8 @@ void GeneralConfigurationPage::applyConf()
if (path != settings.value("elements-collections/custom-tbt-path").toString()) {
QETApp::resetUserElementsDir();
}
settings.setValue("use_pugixml", ui->m_use_pugi_xml->isChecked()? true : false);
}
/**

View File

@@ -17,7 +17,7 @@
<item row="0" column="0">
<widget class="QTabWidget" name="tabWidget">
<property name="currentIndex">
<number>1</number>
<number>0</number>
</property>
<widget class="QWidget" name="tab_3">
<attribute name="title">
@@ -325,6 +325,13 @@ Vous pouvez spécifier ici la valeur par défaut de ce champ pour les éléments
</layout>
</widget>
</item>
<item>
<widget class="QCheckBox" name="m_use_pugi_xml">
<property name="text">
<string>Utiliser pugi xml pour le chargement des collections.</string>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="tab_6">