aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/scxmleditor
diff options
context:
space:
mode:
authorAlessandro Portale <alessandro.portale@qt.io>2023-02-08 11:15:14 +0100
committerAlessandro Portale <alessandro.portale@qt.io>2023-02-08 11:08:48 +0000
commit48affa1889ab7285ac84a50bd2df34f50c2b1bfb (patch)
tree865a7c9a8a0c0457e5e4ec83fe905fc11c659f50 /src/plugins/scxmleditor
parentccbee9bf42a934a81ac06181e09a77b530ee765e (diff)
Translations: Remove header includes of *tr.h in .h files
The wrong Tr::tr could be executed by code indirectly including a *tr.h file from another module. To Translate in a header file, use QCoreApplication::tr(). Change-Id: I30e67245991d2c2f0eeb01ab356555bdb9841af0 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/scxmleditor')
-rw-r--r--src/plugins/scxmleditor/common/search.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/scxmleditor/common/search.h b/src/plugins/scxmleditor/common/search.h
index 3ade6d357d8..4daa699589e 100644
--- a/src/plugins/scxmleditor/common/search.h
+++ b/src/plugins/scxmleditor/common/search.h
@@ -4,10 +4,10 @@
#pragma once
#include "outputpane.h"
-#include "scxmleditortr.h"
#include <utils/utilsicons.h>
+#include <QCoreApplication>
#include <QFrame>
#include <QPointer>
@@ -40,7 +40,7 @@ public:
QString title() const override
{
- return Tr::tr("Search");
+ return QCoreApplication::tr("::ScxmlEditor", "Search");
}
QIcon icon() const override