summaryrefslogtreecommitdiff
path: root/src/outputwindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/outputwindow.h')
-rw-r--r--src/outputwindow.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/outputwindow.h b/src/outputwindow.h
index bb7ef7b..182499a 100644
--- a/src/outputwindow.h
+++ b/src/outputwindow.h
@@ -65,6 +65,9 @@ public slots:
void reset();
protected:
+ void mouseMoveEvent(QMouseEvent* event);
+ void mousePressEvent(QMouseEvent* event);
+ void mouseReleaseEvent(QMouseEvent* event);
void wheelEvent(QWheelEvent* event);
void paintEvent(QPaintEvent* event);
@@ -92,4 +95,9 @@ private:
QString penfile;
volatile float scale{2.0f};
+
+ bool dragging{false};
+ QPoint dragOffsetOrigo{0, 0};
+ QPoint dragOffset{0, 0};
+ QPoint offset{0, 0};
};