From 854734dcbe6e5a6df62d995e14c5efb6976bb6e3 Mon Sep 17 00:00:00 2001 From: Sergey Belyashov Date: Mon, 28 Nov 2016 12:08:02 +0300 Subject: Fix translation contexts in classes not derived from qobject Change-Id: I0afbc19a27179b0646564cbb195683279175e98c Reviewed-by: Oswald Buddenhagen Reviewed-by: Katja Marttila --- src/libs/installer/consumeoutputoperation.h | 1 + src/libs/installer/createdesktopentryoperation.h | 1 + src/libs/installer/createlinkoperation.h | 1 + src/libs/installer/createshortcutoperation.h | 1 + src/libs/installer/environmentvariablesoperation.h | 1 + src/libs/installer/globalsettingsoperation.h | 1 + src/libs/installer/licenseoperation.h | 1 + src/libs/installer/linereplaceoperation.h | 1 + src/libs/installer/replaceoperation.h | 1 + src/libs/installer/selfrestartoperation.h | 1 + src/libs/installer/settingsoperation.h | 1 + src/libs/kdtools/kdupdaterupdateoperations.h | 7 +++++++ 12 files changed, 18 insertions(+) diff --git a/src/libs/installer/consumeoutputoperation.h b/src/libs/installer/consumeoutputoperation.h index 47f076c5c..ff7629e6e 100644 --- a/src/libs/installer/consumeoutputoperation.h +++ b/src/libs/installer/consumeoutputoperation.h @@ -35,6 +35,7 @@ namespace QInstaller { class INSTALLER_EXPORT ConsumeOutputOperation : public Operation { + Q_DECLARE_TR_FUNCTIONS(QInstaller::ConsumeOutputOperation) public: ConsumeOutputOperation(); diff --git a/src/libs/installer/createdesktopentryoperation.h b/src/libs/installer/createdesktopentryoperation.h index 8df89abf9..6a7ab5c25 100644 --- a/src/libs/installer/createdesktopentryoperation.h +++ b/src/libs/installer/createdesktopentryoperation.h @@ -35,6 +35,7 @@ namespace QInstaller { class INSTALLER_EXPORT CreateDesktopEntryOperation : public Operation { + Q_DECLARE_TR_FUNCTIONS(QInstaller::CreateDesktopEntryOperation) public: CreateDesktopEntryOperation(); ~CreateDesktopEntryOperation(); diff --git a/src/libs/installer/createlinkoperation.h b/src/libs/installer/createlinkoperation.h index 6b2a8456e..8b27014bd 100644 --- a/src/libs/installer/createlinkoperation.h +++ b/src/libs/installer/createlinkoperation.h @@ -35,6 +35,7 @@ namespace QInstaller { class INSTALLER_EXPORT CreateLinkOperation : public Operation { + Q_DECLARE_TR_FUNCTIONS(QInstaller::CreateLinkOperation) public: CreateLinkOperation(); diff --git a/src/libs/installer/createshortcutoperation.h b/src/libs/installer/createshortcutoperation.h index 9d07da350..6cd5dc064 100644 --- a/src/libs/installer/createshortcutoperation.h +++ b/src/libs/installer/createshortcutoperation.h @@ -35,6 +35,7 @@ namespace QInstaller { class INSTALLER_EXPORT CreateShortcutOperation : public Operation { + Q_DECLARE_TR_FUNCTIONS(QInstaller::CreateShortcutOperation) public: CreateShortcutOperation(); diff --git a/src/libs/installer/environmentvariablesoperation.h b/src/libs/installer/environmentvariablesoperation.h index 836002763..bda0dd2cd 100644 --- a/src/libs/installer/environmentvariablesoperation.h +++ b/src/libs/installer/environmentvariablesoperation.h @@ -35,6 +35,7 @@ namespace QInstaller { class INSTALLER_EXPORT EnvironmentVariableOperation : public Operation { + Q_DECLARE_TR_FUNCTIONS(QInstaller::EnvironmentVariableOperation) public: EnvironmentVariableOperation(); diff --git a/src/libs/installer/globalsettingsoperation.h b/src/libs/installer/globalsettingsoperation.h index 31c1a6dee..be6e79c5d 100644 --- a/src/libs/installer/globalsettingsoperation.h +++ b/src/libs/installer/globalsettingsoperation.h @@ -36,6 +36,7 @@ namespace QInstaller { class QSettingsWrapper; class INSTALLER_EXPORT GlobalSettingsOperation : public Operation { + Q_DECLARE_TR_FUNCTIONS(QInstaller::GlobalSettingsOperation) public: GlobalSettingsOperation(); diff --git a/src/libs/installer/licenseoperation.h b/src/libs/installer/licenseoperation.h index dace873e2..37820fbe5 100644 --- a/src/libs/installer/licenseoperation.h +++ b/src/libs/installer/licenseoperation.h @@ -35,6 +35,7 @@ namespace QInstaller { class INSTALLER_EXPORT LicenseOperation : public Operation { + Q_DECLARE_TR_FUNCTIONS(QInstaller::LicenseOperation) public: LicenseOperation(); diff --git a/src/libs/installer/linereplaceoperation.h b/src/libs/installer/linereplaceoperation.h index af45c153b..6370a535c 100644 --- a/src/libs/installer/linereplaceoperation.h +++ b/src/libs/installer/linereplaceoperation.h @@ -35,6 +35,7 @@ namespace QInstaller { class INSTALLER_EXPORT LineReplaceOperation : public Operation { + Q_DECLARE_TR_FUNCTIONS(QInstaller::LineReplaceOperation) public: LineReplaceOperation(); diff --git a/src/libs/installer/replaceoperation.h b/src/libs/installer/replaceoperation.h index 83c658fec..0ad614697 100644 --- a/src/libs/installer/replaceoperation.h +++ b/src/libs/installer/replaceoperation.h @@ -35,6 +35,7 @@ namespace QInstaller { class INSTALLER_EXPORT ReplaceOperation : public Operation { + Q_DECLARE_TR_FUNCTIONS(QInstaller::ReplaceOperation) public: ReplaceOperation(); diff --git a/src/libs/installer/selfrestartoperation.h b/src/libs/installer/selfrestartoperation.h index 560568fc3..54a05f3d1 100644 --- a/src/libs/installer/selfrestartoperation.h +++ b/src/libs/installer/selfrestartoperation.h @@ -35,6 +35,7 @@ namespace QInstaller { class INSTALLER_EXPORT SelfRestartOperation : public Operation { + Q_DECLARE_TR_FUNCTIONS(QInstaller::SelfRestartOperation) public: SelfRestartOperation(); diff --git a/src/libs/installer/settingsoperation.h b/src/libs/installer/settingsoperation.h index 6663c2af4..14b0eb169 100644 --- a/src/libs/installer/settingsoperation.h +++ b/src/libs/installer/settingsoperation.h @@ -35,6 +35,7 @@ namespace QInstaller { class INSTALLER_EXPORT SettingsOperation : public Operation { + Q_DECLARE_TR_FUNCTIONS(QInstaller::SettingsOperation) public: SettingsOperation(); diff --git a/src/libs/kdtools/kdupdaterupdateoperations.h b/src/libs/kdtools/kdupdaterupdateoperations.h index 519cf21f4..5314dc81e 100644 --- a/src/libs/kdtools/kdupdaterupdateoperations.h +++ b/src/libs/kdtools/kdupdaterupdateoperations.h @@ -35,6 +35,7 @@ namespace KDUpdater { class KDTOOLS_EXPORT CopyOperation : public UpdateOperation { + Q_DECLARE_TR_FUNCTIONS(KDUpdater::CopyOperation) public: CopyOperation(); ~CopyOperation(); @@ -53,6 +54,7 @@ private: class KDTOOLS_EXPORT MoveOperation : public UpdateOperation { + Q_DECLARE_TR_FUNCTIONS(KDUpdater::MoveOperation) public: MoveOperation(); ~MoveOperation(); @@ -66,6 +68,7 @@ public: class KDTOOLS_EXPORT DeleteOperation : public UpdateOperation { + Q_DECLARE_TR_FUNCTIONS(KDUpdater::DeleteOperation) public: DeleteOperation(); ~DeleteOperation(); @@ -81,6 +84,7 @@ public: class KDTOOLS_EXPORT MkdirOperation : public UpdateOperation { + Q_DECLARE_TR_FUNCTIONS(KDUpdater::MkdirOperation) public: MkdirOperation(); @@ -93,6 +97,7 @@ public: class KDTOOLS_EXPORT RmdirOperation : public UpdateOperation { + Q_DECLARE_TR_FUNCTIONS(KDUpdater::RmdirOperation) public: RmdirOperation(); @@ -105,6 +110,7 @@ public: class KDTOOLS_EXPORT AppendFileOperation : public UpdateOperation { + Q_DECLARE_TR_FUNCTIONS(KDUpdater::AppendFileOperation) public: AppendFileOperation(); @@ -117,6 +123,7 @@ public: class KDTOOLS_EXPORT PrependFileOperation : public UpdateOperation { + Q_DECLARE_TR_FUNCTIONS(KDUpdater::PrependFileOperation) public: PrependFileOperation(); -- cgit v1.2.3