]> git.sesse.net Git - kdenlive/commitdiff
Fix compilation with Qt < 4.6
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Sat, 14 Nov 2009 07:43:02 +0000 (07:43 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Sat, 14 Nov 2009 07:43:02 +0000 (07:43 +0000)
svn path=/trunk/kdenlive/; revision=4123

src/titlewidget.cpp

index b43c4eb24a86dde0cf044296eb22690de79af12e..5ea7c434f17946fe617d8879e2482331d10ac06d 100644 (file)
@@ -711,6 +711,7 @@ void TitleWidget::selectionChanged()
                     effect_stack->setHidden(false);
                 }
             } else {
+#if QT_VERSION >= 0x040600
                 if (i->graphicsEffect()) {
                     QGraphicsBlurEffect *blur = static_cast <QGraphicsBlurEffect *>(i->graphicsEffect());
                     if (blur) {
@@ -734,6 +735,12 @@ void TitleWidget::selectionChanged()
                     effect_list->blockSignals(false);
                     effect_stack->setHidden(true);
                 }
+#else
+               effect_list->blockSignals(true);
+                effect_list->setCurrentIndex(effect_list->findData((int) NOEFFECT));
+                effect_list->blockSignals(false);
+                effect_stack->setHidden(true);
+#endif
             }
             //if (l[0]->hasFocus())
             //toolBox->setCurrentIndex(0);