From 9b0c9fa68de363bdd6d1e821eb57e50eaa76fc3c Mon Sep 17 00:00:00 2001 From: Samuel Fadel Date: Tue, 6 Oct 2015 15:51:41 -0300 Subject: Solved issue #1 (history autoscroll). --- historygraph.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'historygraph.h') diff --git a/historygraph.h b/historygraph.h index 60cce94..6c5bd9a 100644 --- a/historygraph.h +++ b/historygraph.h @@ -2,6 +2,7 @@ #define HISTORYGRAPH_H #include +#include #include class HistoryGraph : public QQuickItem @@ -19,6 +20,7 @@ public slots: protected: QSGNode *updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData *); + void hoverMoveEvent(QHoverEvent *event); void mousePressEvent(QMouseEvent *event); private: @@ -32,6 +34,8 @@ private: void addScatterplot(QSGNode *node, const HistoryItemNode *historyItemNode, float x, float y, float w, float h); HistoryItemNode *m_firstNode, *m_currentNode; + QMatrix4x4 m_viewportTransform; + float m_currentWidth; bool m_needsUpdate; }; -- cgit v1.2.3