X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fcustomtrackview.h;h=995e134e369aa6a26ff375ff9ea8e6e455bc1abd;hb=445bf575ddfda3ee33611a84751bed59a799d251;hp=c437b0731cb2f55632becd53c51a452583ff1bf6;hpb=8c544c0cf9380fe81a529ab36b63d7c9993747ff;p=kdenlive diff --git a/src/customtrackview.h b/src/customtrackview.h index c437b073..995e134e 100644 --- a/src/customtrackview.h +++ b/src/customtrackview.h @@ -22,6 +22,7 @@ #define CUSTOMTRACKVIEW_H #include +#include #include #include @@ -42,6 +43,7 @@ class AbstractClipItem; class AbstractGroupItem; class Transition; + class CustomTrackView : public QGraphicsView { Q_OBJECT @@ -332,6 +334,11 @@ private: QMutex m_mutex; QWaitCondition m_producerNotReady; + KStatefulBrush m_activeTrackBrush; + + /** stores the state of the control modifier during mouse press. + * Will then be used to identify whether we resize a group or only one item of it. */ + bool m_controlModifier; /** Get the index of the video track that is just below current track */ int getPreviousVideoTrack(int track); @@ -394,9 +401,7 @@ private: /** @brief Updates @param item's pan and zoom effect after resize or cut. * @param item clip whose pan and zoom effect should be updated - * @param cutPos (optional) if clip was cut, cut position relative to the original's clip position - * - */ + * @param cutPos (optional) if clip was cut, cut position relative to the original's clip position */ void updatePanZoom(ClipItem *item, GenTime cutPos = GenTime()); private slots: