diff options
author | Katja Marttila <katja.marttila@qt.io> | 2021-01-12 16:28:06 +0200 |
---|---|---|
committer | Katja Marttila <katja.marttila@qt.io> | 2021-01-14 22:39:09 +0200 |
commit | 4d9620977c81401f88212196b1d1a1094fc19699 (patch) | |
tree | 31ca12ea43344f07818ac4e5febec8ab283f5cdf /src/libs/installer/scriptengine_p.h | |
parent | c9eb521f4520d5624ad83ed3a54705169049ad1c (diff) |
Fix translating from component script
Translate using QCoreApplication::translate instead of QObject::tr.
Removed the use of obsolete installTranslatorFunctions() function.
Task-number: QTIFW-392
Change-Id: Icdd67efb6889acd26d63297fb89945c3431c881c
Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
Diffstat (limited to 'src/libs/installer/scriptengine_p.h')
-rw-r--r-- | src/libs/installer/scriptengine_p.h | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/libs/installer/scriptengine_p.h b/src/libs/installer/scriptengine_p.h index bf8240d98..c5f04c0dc 100644 --- a/src/libs/installer/scriptengine_p.h +++ b/src/libs/installer/scriptengine_p.h @@ -125,24 +125,6 @@ private: ScriptEngine *m_engine; }; -#if QT_VERSION < 0x050400 -class QCoreApplicationProxy : public QObject -{ - Q_OBJECT - Q_DISABLE_COPY(QCoreApplicationProxy) - -public: - QCoreApplicationProxy() {} - -public slots: - QString qsTr(const QString &text = QString(), const QString &disambiguation = QString(), int n = -1) const - { - return QCoreApplication::translate(QCoreApplication::applicationName().toUtf8().constData(), - text.toUtf8().constData(), disambiguation.toUtf8().constData(), n); - } -}; -#endif - class GuiProxy : public QObject { Q_OBJECT @@ -198,8 +180,5 @@ Q_DECLARE_METATYPE(QInstaller::ConsoleProxy*) Q_DECLARE_METATYPE(QInstaller::InstallerProxy*) Q_DECLARE_METATYPE(QInstaller::QFileDialogProxy*) Q_DECLARE_METATYPE(QInstaller::QDesktopServicesProxy*) -#if QT_VERSION < 0x050400 -Q_DECLARE_METATYPE(QInstaller::QCoreApplicationProxy*) -#endif #endif // SCRIPTENGINE_H |