]> git.sesse.net Git - kdenlive/blobdiff - src/onmonitoritems/onmonitorcornersitem.h
Make it easier to edit rect and corners on the monitor by making the area around...
[kdenlive] / src / onmonitoritems / onmonitorcornersitem.h
index c97114a3766dcf2ea0a4cbb2fca1bde90e6e0495..1e09069b38d29d764eea8abaef6f901715ae7ae0 100644 (file)
@@ -25,6 +25,8 @@
 #include <QtCore>
 #include <QGraphicsPolygonItem>
 
+class QGraphicsView;
+
 class OnMonitorCornersItem : public QObject, public QGraphicsPolygonItem
 {
     Q_OBJECT
@@ -51,12 +53,17 @@ private:
     /** @brief Returns the points of this polygon but sorted clockwise. */
     QList <QPointF> sortedClockwise();
 
+    /** @brief Tries to get the view of the scene. */
+    bool getView();
+
     cornersActions m_mode;
     /** Number of the selected corner or if in MoveSide mode number of the first corner on this side */
     int m_selectedCorner;
     QPointF m_lastPoint;
     bool m_modified;
 
+    QGraphicsView *m_view;
+
 signals:
     void changed();
 };