Fix i18n problems

In the QmlEngine, a few tr() have been replaced by
QCoreApplication::translate().
In other files, Q_OBJECT has been added to the class definitions.

Change-Id: Ia0505c19934dc691cd3d67f4946293290c2fec68
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
Sergey Belyashov
2015-07-23 14:31:43 +03:00
parent ac7f32e4c2
commit 007daabff5
5 changed files with 21 additions and 2 deletions

View File

@@ -228,6 +228,7 @@ static Core::Id idFromScript(const QString &target)
class PythonProjectManager : public IProjectManager
{
Q_OBJECT
public:
PythonProjectManager() {}
@@ -366,6 +367,7 @@ private:
class PythonRunConfigurationWidget : public QWidget
{
Q_OBJECT
public:
PythonRunConfigurationWidget(PythonRunConfiguration *runConfiguration, QWidget *parent = 0);
void setInterpreter(const QString &interpreter);
@@ -379,6 +381,7 @@ private:
class PythonRunConfiguration : public RunConfiguration
{
Q_OBJECT
public:
PythonRunConfiguration(Target *parent, Core::Id id);
@@ -405,6 +408,7 @@ private:
class PythonRunControl : public RunControl
{
Q_OBJECT
public:
PythonRunControl(PythonRunConfiguration *runConfiguration, Core::Id mode);
@@ -1270,3 +1274,5 @@ QSet<QString> PythonEditorPlugin::builtins()
} // namespace Internal
} // namespace PythonEditor
#include "pythoneditorplugin.moc"