diff options
author | Samuel Fadel <samuelfadel@gmail.com> | 2015-10-06 15:51:41 -0300 |
---|---|---|
committer | Samuel Fadel <samuelfadel@gmail.com> | 2015-10-06 15:51:41 -0300 |
commit | 9b0c9fa68de363bdd6d1e821eb57e50eaa76fc3c (patch) | |
tree | 7219853cf1cc597f92e9b1809575750080c92c41 /historygraph.h | |
parent | 19d4b793783ad7751179fe0bd63eee48a7ce8ae8 (diff) |
Solved issue #1 (history autoscroll).
Diffstat (limited to 'historygraph.h')
-rw-r--r-- | historygraph.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 <QtQuick> +#include <QMatrix4x4> #include <armadillo> 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; }; |