aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/watchhandler.cpp
diff options
context:
space:
mode:
authorhjk <[email protected]>2009-03-19 09:32:09 +0100
committerhjk <[email protected]>2009-03-19 09:32:47 +0100
commit0b58f1f5279e0d8f973f705bf1481a752e641e15 (patch)
treee2ca0749962ec13de9111dd103df187f36a89297 /src/plugins/debugger/watchhandler.cpp
parent5f139b490adc84789bdf7511b4913a43f09e3aac (diff)
debugger: reorganizing settings and actions in progress
Diffstat (limited to 'src/plugins/debugger/watchhandler.cpp')
-rw-r--r--src/plugins/debugger/watchhandler.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/plugins/debugger/watchhandler.cpp b/src/plugins/debugger/watchhandler.cpp
index b369bb63aa4..053ae00e5f2 100644
--- a/src/plugins/debugger/watchhandler.cpp
+++ b/src/plugins/debugger/watchhandler.cpp
@@ -28,6 +28,7 @@
**************************************************************************/
#include "watchhandler.h"
+#include "debuggeractions.h"
#if USE_MODEL_TEST
#include "modeltest.h"
@@ -38,6 +39,7 @@
#include <QtCore/QDebug>
#include <QtCore/QEvent>
+#include <QtGui/QAction>
#include <QtGui/QApplication>
#include <QtGui/QLabel>
#include <QtGui/QToolTip>
@@ -365,6 +367,14 @@ WatchHandler::WatchHandler()
m_completeSet = initialSet();
m_incompleteSet.clear();
m_displaySet = m_completeSet;
+
+ QtcSettings *s = theDebuggerSettings();
+
+ connect(s->item(WatchExpression), SIGNAL(stringValueChanged(QString)),
+ this, SLOT(watchExpression(QString)));
+
+ connect(s->item(RemoveWatchExpression), SIGNAL(stringValueChanged(QString)),
+ this, SLOT(removeWatchExpression(QString)));
}
bool WatchHandler::setData(const QModelIndex &idx,