summaryrefslogtreecommitdiff
path: root/src/plugins/debugger/debuggertooltipmanager.h
diff options
context:
space:
mode:
authorhjk <hjk121@nokiamail.com>2013-10-11 16:56:25 +0200
committerDavid Schulz <david.schulz@digia.com>2013-10-14 15:42:43 +0200
commit1650aaae386c4aa235ee39c25ab1e72564da8ea5 (patch)
tree35f6b79625eec7678b534d8ec416ec9fad9921ab /src/plugins/debugger/debuggertooltipmanager.h
parentf50ffd614c25f66a5e237f19ea6f0982f665bc27 (diff)
downloadqt-creator-1650aaae386c4aa235ee39c25ab1e72564da8ea5.tar.gz
Debugger: Fold GdbToolTipContext into DebuggerToolTipIndex
Change-Id: Iee9201daa8d42ee4231895b1c78387acbc7caaac Reviewed-by: David Schulz <david.schulz@digia.com>
Diffstat (limited to 'src/plugins/debugger/debuggertooltipmanager.h')
-rw-r--r--src/plugins/debugger/debuggertooltipmanager.h23
1 files changed, 8 insertions, 15 deletions
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<DebuggerToolTipContext> 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<QString, QByteArray> ExpressionInamePair;
- typedef QList<ExpressionInamePair> 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());