aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/watchhandler.cpp
diff options
context:
space:
mode:
authorhjk <[email protected]>2012-02-07 15:39:27 +0100
committerhjk <[email protected]>2012-02-07 15:48:42 +0100
commit9c57b1000f51719a44e64d4edf9c2af912877f11 (patch)
tree4e0faae2ab3e877f60e6ea02def48ce9e84b13f5 /src/plugins/debugger/watchhandler.cpp
parent84b82446e09191e64d3af5b4dc73a59a0d2adb3f (diff)
debugger: Do not display empty tooltips
Diffstat (limited to 'src/plugins/debugger/watchhandler.cpp')
-rw-r--r--src/plugins/debugger/watchhandler.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/debugger/watchhandler.cpp b/src/plugins/debugger/watchhandler.cpp
index b925766366f..542b7d2469a 100644
--- a/src/plugins/debugger/watchhandler.cpp
+++ b/src/plugins/debugger/watchhandler.cpp
@@ -1893,5 +1893,11 @@ void WatchHandler::resetLocation()
}
}
+bool WatchHandler::isValidToolTip(const QByteArray &iname) const
+{
+ WatchItem *item = m_tooltips->findItem(iname, m_tooltips->m_root);
+ return item && !item->type.trimmed().isEmpty();
+}
+
} // namespace Internal
} // namespace Debugger