mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 05:00:33 +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:
@@ -21,6 +21,7 @@
|
||||
#include "elementinfopartwidget.h"
|
||||
#include "qetapp.h"
|
||||
#include "searchandreplaceworker.h"
|
||||
#include "qetinformation.h"
|
||||
|
||||
#include <QAbstractButton>
|
||||
|
||||
@@ -74,7 +75,7 @@ void ReplaceElementDialog::buildWidget()
|
||||
|
||||
for (QString str : QETApp::elementInfoKeys())
|
||||
{
|
||||
ElementInfoPartWidget *eipw = new ElementInfoPartWidget(str, QETApp::elementTranslatedInfoKey(str), this);
|
||||
ElementInfoPartWidget *eipw = new ElementInfoPartWidget(str, QETInformation::translatedInfoKey(str), this);
|
||||
eipw->setEraseTextVisible(true);
|
||||
eipw->setPlaceHolderText(tr("Ne pas modifier"));
|
||||
ui->m_scroll_layout->addWidget(eipw);
|
||||
|
||||
Reference in New Issue
Block a user