]> git.sesse.net Git - kdenlive/blobdiff - src/onmonitoritems/onmonitorrectitem.h
Make it easier to edit rect and corners on the monitor by making the area around...
[kdenlive] / src / onmonitoritems / onmonitorrectitem.h
index 047f3e6a191c8a894bb5a0e663be06b60322e26d..ea7c2fe7206a7026ebb3ff44846d42c0c5e3f6b9 100644 (file)
@@ -25,6 +25,8 @@
 #include <QtCore>
 #include <QGraphicsRectItem>
 
+class QGraphicsView;
+
 enum rectActions { Move, ResizeTopLeft, ResizeBottomLeft, ResizeTopRight, ResizeBottomRight, ResizeLeft, ResizeRight, ResizeTop, ResizeBottom, NoAction };
 
 class OnMonitorRectItem : public QObject, public QGraphicsRectItem
@@ -53,6 +55,11 @@ private:
     QPointF m_lastPoint;
     bool m_modified;
 
+    QGraphicsView *m_view;
+
+    /** @brief Tries to get the view of the scene. */
+    bool getView();
+
 signals:
     void changed();
 };