mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-17 12:40:35 +01:00
Change function QETApp::elementTranslatedInfoKey
Use the function QETInformation::translatedInfoKey(const QString &info) instead of QETApp::elementTranslatedInfoKey(const QString &info). The final goal is to remove all information from the QETApp and use instea QETInformation who is dedicated to this
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
#include "element.h"
|
||||
#include "qetapp.h"
|
||||
#include "conductor.h"
|
||||
#include "qetinformation.h"
|
||||
|
||||
CompositeTextEditDialog::CompositeTextEditDialog(DynamicElementTextItem *text, QWidget *parent) :
|
||||
QDialog(parent),
|
||||
@@ -66,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(QETApp::elementTranslatedInfoKey(str), QETApp::elementInfoToVar(str));
|
||||
info_map.insert(QETInformation::translatedInfoKey(str), QETApp::elementInfoToVar(str));
|
||||
}
|
||||
for(const QString& key : info_map.keys()) {
|
||||
ui->m_info_cb->addItem(key, info_map.value(key));
|
||||
|
||||
Reference in New Issue
Block a user