X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fmonitorscene.h;h=a6eb27e96b366e916146d848b1126bed6b6b6009;hb=7f66f7e73f6202bfaeae96542b941011d59816e5;hp=36477dffa59f48628f7210ea34af8a1c0c377136;hpb=aca39cbba2ef55a7bc7f1b2f9ce9a32460dd883b;p=kdenlive diff --git a/src/monitorscene.h b/src/monitorscene.h index 36477dff..a6eb27e9 100644 --- a/src/monitorscene.h +++ b/src/monitorscene.h @@ -31,7 +31,7 @@ class MonitorScene : public QGraphicsScene { Q_OBJECT public: - MonitorScene(Render *renderer, QObject* parent = 0); + explicit MonitorScene(Render *renderer, QObject* parent = 0); /** @brief Sets m_view to this scenes view. */ void setUp(); @@ -42,6 +42,12 @@ public: /** @brief Makes the background frame fit again after the profile changed (and therefore the resolution might have changed). */ void resetProfile(); + + /** @brief Reset scene size. */ + void cleanup(); + + /** @brief Center view on frame border. */ + void centerView(); protected: virtual void mousePressEvent(QGraphicsSceneMouseEvent *event);