From 1650aaae386c4aa235ee39c25ab1e72564da8ea5 Mon Sep 17 00:00:00 2001 From: hjk Date: Fri, 11 Oct 2013 16:56:25 +0200 Subject: Debugger: Fold GdbToolTipContext into DebuggerToolTipIndex Change-Id: Iee9201daa8d42ee4231895b1c78387acbc7caaac Reviewed-by: David Schulz --- src/plugins/debugger/debuggertooltipmanager.h | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) (limited to 'src/plugins/debugger/debuggertooltipmanager.h') diff --git a/src/plugins/debugger/debuggertooltipmanager.h b/src/plugins/debugger/debuggertooltipmanager.h index 9575353b6d..721778aaf1 100644 --- a/src/plugins/debugger/debuggertooltipmanager.h +++ b/src/plugins/debugger/debuggertooltipmanager.h @@ -75,8 +75,15 @@ public: int line; int column; QString function; //!< Optional function. This must be set by the engine as it is language-specific. + + QPoint mousePosition; + QString expression; + QByteArray iname; }; +typedef QList DebuggerToolTipContexts; + + QDebug operator<<(QDebug, const DebuggerToolTipContext &); class DebuggerToolTipTreeView; @@ -108,17 +115,8 @@ public: QDate creationDate() const { return m_creationDate; } void setCreationDate(const QDate &d) { m_creationDate = d; } - QPoint offset() const { return m_offset; } - void setOffset(const QPoint &o) { m_offset = o; } - static DebuggerToolTipWidget *loadSessionData(QXmlStreamReader &r); - QByteArray iname() const { return m_iname; } - void setIname(const QByteArray &e) { m_iname = e; } - - QString expression() const { return m_expression; } - void setExpression(const QString &e) { m_expression = e; } - static QString treeModelClipboardContents(const QAbstractItemModel *m); public slots: @@ -160,8 +158,6 @@ private: static void restoreTreeModel(QXmlStreamReader &r, QStandardItemModel *m); int m_debuggerModel; - QString m_expression; - QByteArray m_iname; DebuggerToolTipTreeView *m_treeView; QStandardItemModel *m_defaultModel; @@ -192,9 +188,6 @@ class DebuggerToolTipManager : public QObject Q_OBJECT public: - typedef QPair ExpressionInamePair; - typedef QList ExpressionInamePairs; - explicit DebuggerToolTipManager(QObject *parent = 0); ~DebuggerToolTipManager(); @@ -202,7 +195,7 @@ public: static bool hasToolTips(); // Collect all expressions of DebuggerTreeViewToolTipWidget - static ExpressionInamePairs treeWidgetExpressions(const QString &fileName, + static DebuggerToolTipContexts treeWidgetExpressions(const QString &fileName, const QString &engineType = QString(), const QString &function= QString()); -- cgit v1.2.1