/** This class holds all properties that need to be used by clip items */
-class CustomTrackScene : public QGraphicsScene {
+class CustomTrackScene : public QGraphicsScene
+{
Q_OBJECT
public:
- CustomTrackScene(KdenliveDoc *doc, QObject *parent = 0);
+ explicit CustomTrackScene(KdenliveDoc *doc, QObject *parent = 0);
virtual ~ CustomTrackScene();
void setSnapList(QList <GenTime> snaps);
GenTime previousSnapPoint(GenTime pos);
GenTime nextSnapPoint(GenTime pos);
double getSnapPointForPos(double pos, bool doSnap = true);
- void setScale(double scale);
- double scale() const;
+ void setScale(double scale, double vscale);
+ QPointF scale() const;
int tracksCount() const;
QPixmap m_transitionPixmap;
private:
KdenliveDoc *m_document;
QList <GenTime> m_snapPoints;
- double m_scale;
+ QPointF m_scale;
};
#endif