mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-30 15:50:52 +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:
@@ -18,6 +18,7 @@
|
||||
#include "elementpropertieseditorwidget.h"
|
||||
#include "ui_elementpropertieseditorwidget.h"
|
||||
#include "qetapp.h"
|
||||
#include "qetinformation.h"
|
||||
|
||||
#include <QItemDelegate>
|
||||
|
||||
@@ -184,7 +185,7 @@ void ElementPropertiesEditorWidget::populateTree()
|
||||
QTreeWidgetItem *qtwi = new QTreeWidgetItem(ui->m_tree);
|
||||
qtwi->setFlags(Qt::ItemIsEnabled | Qt::ItemIsEditable);
|
||||
qtwi->setData(0, Qt::DisplayRole,
|
||||
QETApp::elementTranslatedInfoKey(key));
|
||||
QETInformation::translatedInfoKey(key));
|
||||
qtwi->setData(0, Qt::UserRole, key);
|
||||
qtwi->setText(1, m_elmt_info.value(key).toString());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user