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:
class BaseWindow : public QWidget
{
Q_OBJECT
public:
explicit BaseWindow(QTreeView *treeView, QWidget *parent = 0);
void setModel(QAbstractItemModel *model) { m_treeView->setModel(model); }
......
......@@ -67,6 +67,8 @@ private:
class BreakWindow : public BaseWindow
{
Q_OBJECT
public:
BreakWindow();
};
......
......@@ -835,7 +835,7 @@ bool DebuggerRunControlFactory::canRun(RunConfiguration *runConfiguration, RunMo
QString DebuggerRunControlFactory::displayName() const
{
return DebuggerRunControl::tr("Debug");
return DebuggerPlugin::tr("Debug");
}
// Find Qt installation by running qmake
......@@ -972,7 +972,7 @@ DebuggerRunControl *DebuggerRunControlFactory::create
if (!check) {
//appendMessage(errorMessage, true);
Core::ICore::showWarningWithOptions(DebuggerRunControl::tr("Debugger"),
Core::ICore::showWarningWithOptions(DebuggerPlugin::tr("Debugger"),
check.errorMessage, check.errorDetailsString(), check.settingsCategory, check.settingsPage);
return 0;
}
......@@ -1002,7 +1002,7 @@ DebuggerEngine *DebuggerRunControlFactory::createEngine
default:
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)));
return 0;
}
......
......@@ -218,8 +218,8 @@ public:
QAction *createAction(QObject *parent = 0)
{
QAction *action = new QAction(tr("Install &Debug Information"), parent);
action->setToolTip(tr("This tries to install missing debug information."));
QAction *action = new QAction(DebuggerPlugin::tr("Install &Debug Information"), parent);
action->setToolTip(DebuggerPlugin::tr("This tries to install missing debug information."));
return action;
}
......
......@@ -54,6 +54,8 @@ private:
class ModulesWindow : public BaseWindow
{
Q_OBJECT
public:
ModulesWindow();
};
......
......@@ -54,6 +54,7 @@ class QtMessageLogProxyModel;
class QtMessageLogWindow : public QWidget
{
Q_OBJECT
public:
QtMessageLogWindow(QWidget *parent = 0);
~QtMessageLogWindow();
......
......@@ -54,6 +54,8 @@ private:
class RegisterWindow : public BaseWindow
{
Q_OBJECT
public:
RegisterWindow();
};
......
......@@ -58,6 +58,7 @@ private:
class SnapshotWindow : public BaseWindow
{
Q_OBJECT
public:
explicit SnapshotWindow(SnapshotHandler *handler)
: BaseWindow(new SnapshotTreeView(handler))
......
......@@ -52,6 +52,8 @@ private:
class SourceFilesWindow : public BaseWindow
{
Q_OBJECT
public:
SourceFilesWindow();
};
......
......@@ -58,6 +58,8 @@ private:
class StackWindow : public BaseWindow
{
Q_OBJECT
public:
StackWindow() : BaseWindow(new StackTreeView)
{
......
......@@ -53,6 +53,8 @@ private:
class ThreadsWindow : public BaseWindow
{
Q_OBJECT
public:
ThreadsWindow();
};
......
......@@ -86,6 +86,8 @@ private:
class WatchWindow : public BaseWindow
{
Q_OBJECT
public:
explicit WatchWindow(WatchTreeView::Type 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