summaryrefslogtreecommitdiff
path: root/src/graphicsview.h
diff options
context:
space:
mode:
authorNikita Kostovsky <nikita@kostovsky.me>2025-09-19 14:28:21 +0200
committerNikita Kostovsky <nikita@kostovsky.me>2025-09-19 21:04:04 +0200
commitad001563fda4a9061909bd09dcf51238138014d6 (patch)
tree5394cc0436d6ef811b6b791c37a233047c99247d /src/graphicsview.h
initial commit
Diffstat (limited to 'src/graphicsview.h')
-rw-r--r--src/graphicsview.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/graphicsview.h b/src/graphicsview.h
new file mode 100644
index 0000000..b7672ee
--- /dev/null
+++ b/src/graphicsview.h
@@ -0,0 +1,21 @@
+#pragma once
+
+// qt
+#include <QGraphicsView>
+
+class GraphicsView : public QGraphicsView
+{
+ Q_OBJECT
+
+public:
+ explicit GraphicsView(QWidget* parent = nullptr);
+ explicit GraphicsView(QGraphicsScene* scene, QWidget* parent = nullptr);
+ ~GraphicsView() override = default;
+
+ // QGraphicsView
+public:
+ void wheelEvent(QWheelEvent* event) override;
+
+private:
+ void init();
+};