]> git.sesse.net Git - kdenlive/blobdiff - src/videoglwidget.h
Fix monitor timecode not visible with some window decorations:
[kdenlive] / src / videoglwidget.h
index 9b089da53910ef5e8ebc6f181d72de16b04f84f4..2d492d9e00296a1a5a9680fd35c68a9e15909c3a 100644 (file)
@@ -11,12 +11,10 @@ class VideoGLWidget : public QGLWidget
 public:
     VideoGLWidget(QWidget *parent = 0);
     ~VideoGLWidget();
-
+    void activateMonitor();
     QSize minimumSizeHint() const;
     QSize sizeHint() const;
-    void setImageAspectRatio(double ratio) {
-        m_display_ratio = ratio;
-    }
+    void setImageAspectRatio(double ratio);
     void setBackgroundColor(QColor color) {
         m_backgroundColor = color;
     }
@@ -27,6 +25,7 @@ private:
     GLuint m_texture;
     double m_display_ratio;
     QColor m_backgroundColor;
+    Qt::WindowFlags m_baseFlags;
 
 public slots:
     void showImage(QImage image);
@@ -34,7 +33,9 @@ public slots:
 protected:
     void initializeGL();
     void resizeGL(int width, int height);
+    void resizeEvent(QResizeEvent* event);
     void paintGL();
+    void mouseDoubleClickEvent(QMouseEvent * event);
 };
 
 #endif