Replace function by another one.

Replace function QETApp::elementInfoKeys() and
QETApp::elementInfoToVar(const QString &info) by function provided by
QETInformation.
This commit is contained in:
Claveau Joshua
2020-11-14 19:09:40 +01:00
parent c87fe8df2f
commit af7d1df5ab
14 changed files with 111 additions and 119 deletions

View File

@@ -59,7 +59,7 @@ void CompositeTextEditDialog::setUpComboBox()
}
else
{
qstrl = QETApp::elementInfoKeys();
qstrl = QETInformation::elementInfoKeys();
qstrl.removeAll("formula");
}
@@ -67,7 +67,7 @@ void CompositeTextEditDialog::setUpComboBox()
//the value of the combo box are always alphabetically sorted
QMap <QString, QString> info_map;
for(const QString& str : qstrl) {
info_map.insert(QETInformation::translatedInfoKey(str), QETApp::elementInfoToVar(str));
info_map.insert(QETInformation::translatedInfoKey(str), QETInformation::elementInfoToVar(str));
}
for(const QString& key : info_map.keys()) {
ui->m_info_cb->addItem(key, info_map.value(key));