Fix translation contexts in classes not derived from qobject

Change-Id: I0afbc19a27179b0646564cbb195683279175e98c
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
Reviewed-by: Katja Marttila <katja.marttila@qt.io>
This commit is contained in:
Sergey Belyashov 2016-11-28 12:08:02 +03:00 committed by Katja Marttila
parent fd261ff6e5
commit 854734dcbe
12 changed files with 18 additions and 0 deletions

View File

@ -35,6 +35,7 @@ namespace QInstaller {
class INSTALLER_EXPORT ConsumeOutputOperation : public Operation
{
Q_DECLARE_TR_FUNCTIONS(QInstaller::ConsumeOutputOperation)
public:
ConsumeOutputOperation();

View File

@ -35,6 +35,7 @@ namespace QInstaller {
class INSTALLER_EXPORT CreateDesktopEntryOperation : public Operation
{
Q_DECLARE_TR_FUNCTIONS(QInstaller::CreateDesktopEntryOperation)
public:
CreateDesktopEntryOperation();
~CreateDesktopEntryOperation();

View File

@ -35,6 +35,7 @@ namespace QInstaller {
class INSTALLER_EXPORT CreateLinkOperation : public Operation
{
Q_DECLARE_TR_FUNCTIONS(QInstaller::CreateLinkOperation)
public:
CreateLinkOperation();

View File

@ -35,6 +35,7 @@ namespace QInstaller {
class INSTALLER_EXPORT CreateShortcutOperation : public Operation
{
Q_DECLARE_TR_FUNCTIONS(QInstaller::CreateShortcutOperation)
public:
CreateShortcutOperation();

View File

@ -35,6 +35,7 @@ namespace QInstaller {
class INSTALLER_EXPORT EnvironmentVariableOperation : public Operation
{
Q_DECLARE_TR_FUNCTIONS(QInstaller::EnvironmentVariableOperation)
public:
EnvironmentVariableOperation();

View File

@ -36,6 +36,7 @@ namespace QInstaller {
class QSettingsWrapper;
class INSTALLER_EXPORT GlobalSettingsOperation : public Operation
{
Q_DECLARE_TR_FUNCTIONS(QInstaller::GlobalSettingsOperation)
public:
GlobalSettingsOperation();

View File

@ -35,6 +35,7 @@ namespace QInstaller {
class INSTALLER_EXPORT LicenseOperation : public Operation
{
Q_DECLARE_TR_FUNCTIONS(QInstaller::LicenseOperation)
public:
LicenseOperation();

View File

@ -35,6 +35,7 @@ namespace QInstaller {
class INSTALLER_EXPORT LineReplaceOperation : public Operation
{
Q_DECLARE_TR_FUNCTIONS(QInstaller::LineReplaceOperation)
public:
LineReplaceOperation();

View File

@ -35,6 +35,7 @@ namespace QInstaller {
class INSTALLER_EXPORT ReplaceOperation : public Operation
{
Q_DECLARE_TR_FUNCTIONS(QInstaller::ReplaceOperation)
public:
ReplaceOperation();

View File

@ -35,6 +35,7 @@ namespace QInstaller {
class INSTALLER_EXPORT SelfRestartOperation : public Operation
{
Q_DECLARE_TR_FUNCTIONS(QInstaller::SelfRestartOperation)
public:
SelfRestartOperation();

View File

@ -35,6 +35,7 @@ namespace QInstaller {
class INSTALLER_EXPORT SettingsOperation : public Operation
{
Q_DECLARE_TR_FUNCTIONS(QInstaller::SettingsOperation)
public:
SettingsOperation();

View File

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