X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fclipmanager.h;h=0dba867ff0452e89ef2024c571c5a31cd4e072d9;hb=56aee6aedeeed3efd10ada8fe3c229eddc01ef05;hp=32f6fd0d670ed940fa97c84252271746524fcecb;hpb=eb9ff9e83c9731da1706ad862095629675427022;p=kdenlive diff --git a/src/clipmanager.h b/src/clipmanager.h index 32f6fd0d..0dba867f 100644 --- a/src/clipmanager.h +++ b/src/clipmanager.h @@ -26,7 +26,7 @@ #ifndef CLIPMANAGER_H #define CLIPMANAGER_H -#include +#include #include #include #include @@ -52,6 +52,7 @@ class KdenliveDoc; class DocClipBase; class AbstractGroupItem; +class QGLWidget; class SolidVolumeInfo @@ -76,7 +77,7 @@ class ClipManager: public QObject { Q_OBJECT public: - ClipManager(KdenliveDoc *doc); + ClipManager(KdenliveDoc *doc, QGLWidget *glContext); virtual ~ ClipManager(); void addClip(DocClipBase *clip); DocClipBase *getClipAt(int pos); @@ -125,6 +126,7 @@ Q_OBJECT public: /** @brief remove a clip id from the queue list. */ void stopThumbs(const QString &id); void projectTreeThumbReady(const QString &id, int frame, const QImage &img, int type); + QGLWidget *getMainContext() const { return m_mainGLContext; } #if KDE_IS_VERSION(4,5,0) KImageCache* pixmapCache; @@ -147,6 +149,7 @@ private slots: void slotAddClip(KIO::Job *job, const KUrl &, const KUrl &dst); private: // Private attributes + QGLWidget *m_mainGLContext; /** the list of clips in the document */ QList m_clipList; /** the list of groups in the document */