mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-02-15 22:49:57 +01:00
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:
@@ -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));
|
||||
|
||||
@@ -1912,7 +1912,7 @@ QStringList DynamicTextItemDelegate::availableInfo(
|
||||
return qstrl;
|
||||
|
||||
|
||||
QStringList info_list = QETApp::elementInfoKeys();
|
||||
QStringList info_list = QETInformation::elementInfoKeys();
|
||||
info_list.removeAll("formula"); //No need to have formula
|
||||
DiagramContext dc = elmt->elementInformations();
|
||||
|
||||
|
||||
@@ -178,7 +178,7 @@ void ElementInfoWidget::disableLiveEdit()
|
||||
*/
|
||||
void ElementInfoWidget::buildInterface()
|
||||
{
|
||||
for (auto str : QETApp::elementInfoKeys())
|
||||
for (auto str : QETInformation::elementInfoKeys())
|
||||
{
|
||||
ElementInfoPartWidget *eipw = new ElementInfoPartWidget(str, QETInformation::translatedInfoKey(str), this);
|
||||
ui->scroll_vlayout->addWidget(eipw);
|
||||
|
||||
Reference in New Issue
Block a user