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:
Claveau Joshua
2020-11-08 19:16:02 +01:00
parent 7882c5734a
commit 6f60156e00
10 changed files with 18 additions and 42 deletions

View File

@@ -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());
}