Commit 071b24d9 authored by hjk's avatar hjk Committed by hjk

debugger: fix translation contexts

* add a few Q_OBJECT
* change DebuggerRunControl::tr() to DebuggerPlugin::tr()

Change-Id: I7ed973ea71b3492e91b45784595d9471587f72ea
Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@nokia.com>
parent b77cdaf7
...@@ -49,6 +49,8 @@ public: ...@@ -49,6 +49,8 @@ public:
class BaseWindow : public QWidget class BaseWindow : public QWidget
{ {
Q_OBJECT
public: public:
explicit BaseWindow(QTreeView *treeView, QWidget *parent = 0); explicit BaseWindow(QTreeView *treeView, QWidget *parent = 0);
void setModel(QAbstractItemModel *model) { m_treeView->setModel(model); } void setModel(QAbstractItemModel *model) { m_treeView->setModel(model); }
......
...@@ -67,6 +67,8 @@ private: ...@@ -67,6 +67,8 @@ private:
class BreakWindow : public BaseWindow class BreakWindow : public BaseWindow
{ {
Q_OBJECT
public: public:
BreakWindow(); BreakWindow();
}; };
......
...@@ -835,7 +835,7 @@ bool DebuggerRunControlFactory::canRun(RunConfiguration *runConfiguration, RunMo ...@@ -835,7 +835,7 @@ bool DebuggerRunControlFactory::canRun(RunConfiguration *runConfiguration, RunMo
QString DebuggerRunControlFactory::displayName() const QString DebuggerRunControlFactory::displayName() const
{ {
return DebuggerRunControl::tr("Debug"); return DebuggerPlugin::tr("Debug");
} }
// Find Qt installation by running qmake // Find Qt installation by running qmake
...@@ -972,7 +972,7 @@ DebuggerRunControl *DebuggerRunControlFactory::create ...@@ -972,7 +972,7 @@ DebuggerRunControl *DebuggerRunControlFactory::create
if (!check) { if (!check) {
//appendMessage(errorMessage, true); //appendMessage(errorMessage, true);
Core::ICore::showWarningWithOptions(DebuggerRunControl::tr("Debugger"), Core::ICore::showWarningWithOptions(DebuggerPlugin::tr("Debugger"),
check.errorMessage, check.errorDetailsString(), check.settingsCategory, check.settingsPage); check.errorMessage, check.errorDetailsString(), check.settingsCategory, check.settingsPage);
return 0; return 0;
} }
...@@ -1002,7 +1002,7 @@ DebuggerEngine *DebuggerRunControlFactory::createEngine ...@@ -1002,7 +1002,7 @@ DebuggerEngine *DebuggerRunControlFactory::createEngine
default: default:
break; break;
} }
*errorMessage = DebuggerRunControl::tr("Unable to create a debugger engine of the type '%1'"). *errorMessage = DebuggerPlugin::tr("Unable to create a debugger engine of the type '%1'").
arg(_(engineTypeName(et))); arg(_(engineTypeName(et)));
return 0; return 0;
} }
......
...@@ -218,8 +218,8 @@ public: ...@@ -218,8 +218,8 @@ public:
QAction *createAction(QObject *parent = 0) QAction *createAction(QObject *parent = 0)
{ {
QAction *action = new QAction(tr("Install &Debug Information"), parent); QAction *action = new QAction(DebuggerPlugin::tr("Install &Debug Information"), parent);
action->setToolTip(tr("This tries to install missing debug information.")); action->setToolTip(DebuggerPlugin::tr("This tries to install missing debug information."));
return action; return action;
} }
......
...@@ -54,6 +54,8 @@ private: ...@@ -54,6 +54,8 @@ private:
class ModulesWindow : public BaseWindow class ModulesWindow : public BaseWindow
{ {
Q_OBJECT
public: public:
ModulesWindow(); ModulesWindow();
}; };
......
...@@ -54,6 +54,7 @@ class QtMessageLogProxyModel; ...@@ -54,6 +54,7 @@ class QtMessageLogProxyModel;
class QtMessageLogWindow : public QWidget class QtMessageLogWindow : public QWidget
{ {
Q_OBJECT Q_OBJECT
public: public:
QtMessageLogWindow(QWidget *parent = 0); QtMessageLogWindow(QWidget *parent = 0);
~QtMessageLogWindow(); ~QtMessageLogWindow();
......
...@@ -54,6 +54,8 @@ private: ...@@ -54,6 +54,8 @@ private:
class RegisterWindow : public BaseWindow class RegisterWindow : public BaseWindow
{ {
Q_OBJECT
public: public:
RegisterWindow(); RegisterWindow();
}; };
......
...@@ -58,6 +58,7 @@ private: ...@@ -58,6 +58,7 @@ private:
class SnapshotWindow : public BaseWindow class SnapshotWindow : public BaseWindow
{ {
Q_OBJECT
public: public:
explicit SnapshotWindow(SnapshotHandler *handler) explicit SnapshotWindow(SnapshotHandler *handler)
: BaseWindow(new SnapshotTreeView(handler)) : BaseWindow(new SnapshotTreeView(handler))
......
...@@ -52,6 +52,8 @@ private: ...@@ -52,6 +52,8 @@ private:
class SourceFilesWindow : public BaseWindow class SourceFilesWindow : public BaseWindow
{ {
Q_OBJECT
public: public:
SourceFilesWindow(); SourceFilesWindow();
}; };
......
...@@ -58,6 +58,8 @@ private: ...@@ -58,6 +58,8 @@ private:
class StackWindow : public BaseWindow class StackWindow : public BaseWindow
{ {
Q_OBJECT
public: public:
StackWindow() : BaseWindow(new StackTreeView) StackWindow() : BaseWindow(new StackTreeView)
{ {
......
...@@ -53,6 +53,8 @@ private: ...@@ -53,6 +53,8 @@ private:
class ThreadsWindow : public BaseWindow class ThreadsWindow : public BaseWindow
{ {
Q_OBJECT
public: public:
ThreadsWindow(); ThreadsWindow();
}; };
......
...@@ -86,6 +86,8 @@ private: ...@@ -86,6 +86,8 @@ private:
class WatchWindow : public BaseWindow class WatchWindow : public BaseWindow
{ {
Q_OBJECT
public: public:
explicit WatchWindow(WatchTreeView::Type type) explicit WatchWindow(WatchTreeView::Type type)
: BaseWindow(new WatchTreeView(type)) : BaseWindow(new WatchTreeView(type))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment