]> git.sesse.net Git - kdenlive/blobdiff - src/videoglwidget.cpp
compile with Qt 4.5:
[kdenlive] / src / videoglwidget.cpp
index e3b0c7506ad071a9b72cd25cb5561dd394cad292..cbe08e3838c19826384e6d1870fedbef15787535 100644 (file)
@@ -120,7 +120,11 @@ void VideoGLWidget::mouseDoubleClickEvent(QMouseEvent * event)
     Qt::WindowFlags flags = windowFlags();
     if (!isFullScreen()) {
         // Check if we ahave a multiple monitor setup
+#if QT_VERSION >= 0x040600
         int monitors = QApplication::desktop()->screenCount();
+#else
+        int monitors = QApplication::desktop()->numScreens();
+#endif
         if (monitors > 1) {
             QRect screenres;
             // Move monitor widget to the second screen (one screen for Kdenlive, the other one for the Monitor widget