From fff5944e65db76b447ef6d9579f80fa4eb45d63f Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Wed, 16 Feb 2022 14:32:48 +0100 Subject: Fix lupdate issues When updating translations with cmake --build . --target ts_de (or other language ID) - Qualifying with unknown namespace/class ::PluginSpecPrivate - lacks Q_OBJECT macro Change-Id: Ic42d8dffea935e6b10e59223bdedb9a8a4dcf446 Reviewed-by: hjk --- src/plugins/android/androiddevice.cpp | 3 ++- src/plugins/clangcodemodel/clangdclient.cpp | 2 +- src/plugins/studiowelcome/studiowelcomeplugin.h | 2 ++ src/plugins/welcome/welcomeplugin.cpp | 2 ++ 4 files changed, 7 insertions(+), 2 deletions(-) (limited to 'src/plugins') diff --git a/src/plugins/android/androiddevice.cpp b/src/plugins/android/androiddevice.cpp index 8a795780519..1ede608bdd1 100644 --- a/src/plugins/android/androiddevice.cpp +++ b/src/plugins/android/androiddevice.cpp @@ -639,7 +639,8 @@ void AndroidDeviceManager::HandleAvdsListChange() // of the device has changed, remove it and register it again with the new name. // Also account for the case of an AVD registered through old QC which might have // invalid data by checking the sdcard size value. - if (dev->displayName() != displayName || androidDev->sdcardSize() == tr("Unknown")) { + if (dev->displayName() != displayName + || androidDev->sdcardSize() == AndroidDevice::tr("Unknown")) { devMgr->removeDevice(dev->id()); } else { // Find the state of the AVD retrieved from the AVD watcher diff --git a/src/plugins/clangcodemodel/clangdclient.cpp b/src/plugins/clangcodemodel/clangdclient.cpp index 50bd7ee24ab..216b90da654 100644 --- a/src/plugins/clangcodemodel/clangdclient.cpp +++ b/src/plugins/clangcodemodel/clangdclient.cpp @@ -4021,7 +4021,7 @@ class MemoryTreeModel : public Utils::BaseTreeModel public: MemoryTreeModel(QObject *parent) : BaseTreeModel(parent) { - setHeader({tr("Component"), tr("Total Memory")}); + setHeader({MemoryUsageWidget::tr("Component"), MemoryUsageWidget::tr("Total Memory")}); } void update(const MemoryTree &tree) diff --git a/src/plugins/studiowelcome/studiowelcomeplugin.h b/src/plugins/studiowelcome/studiowelcomeplugin.h index cd6b8ea87f2..1fdc811d37e 100644 --- a/src/plugins/studiowelcome/studiowelcomeplugin.h +++ b/src/plugins/studiowelcome/studiowelcomeplugin.h @@ -38,6 +38,8 @@ namespace Internal { class StudioSettingsPage : public Core::IOptionsPageWidget { + Q_OBJECT + public: void apply() final; diff --git a/src/plugins/welcome/welcomeplugin.cpp b/src/plugins/welcome/welcomeplugin.cpp index ef4c969be66..938e776ac87 100644 --- a/src/plugins/welcome/welcomeplugin.cpp +++ b/src/plugins/welcome/welcomeplugin.cpp @@ -110,6 +110,8 @@ void ResizeSignallingWidget::resizeEvent(QResizeEvent *event) class WelcomeMode : public IMode { + Q_OBJECT + public: WelcomeMode(); ~WelcomeMode(); -- cgit v1.2.3