diff options
Diffstat (limited to 'src/diagramview.h')
-rw-r--r-- | src/diagramview.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/diagramview.h b/src/diagramview.h index 9e57c36..1a16f6b 100644 --- a/src/diagramview.h +++ b/src/diagramview.h @@ -19,6 +19,7 @@ #include <QGraphicsView> class DiagramDocument; +class QTimer; class DiagramView : public QGraphicsView { @@ -41,13 +42,22 @@ protected: protected slots: void updateSceneRect2(const QRectF &rect); + void doAutoScroll(); private: + void startAutoScroll(); + void stopAutoScroll(); + bool isAutoScrolling() const; + bool shouldAutoScroll(const QPoint &pos) const; + bool m_handScrolling; QPoint m_handScrollingOrigin; QCursor m_savedCursor; int m_handScrollingValueX; int m_handScrollingValueY; + QTimer *m_autoScrollTimer; + int m_autoScrollCount; + int m_autoScrollMargin; }; #endif |