]> git.sesse.net Git - mlt/blobdiff - src/modules/qt/kdenlivetitle_wrapper.cpp
Fix compilation on Qt 4.
[mlt] / src / modules / qt / kdenlivetitle_wrapper.cpp
index 2b089d61288411807b2e46c1087985c68b8464e4..00d87801baed46554675bb165b88a21cb0574e02 100755 (executable)
@@ -381,7 +381,7 @@ void drawKdenliveTitle( producer_ktitle self, mlt_frame frame, int width, int he
                {
                        if ( !createQApplicationIfNeeded( MLT_PRODUCER_SERVICE(producer) ) )
                                return;
-                       if ( QMetaType::UnknownType == QMetaType::type("QTextCursor") )
+                       if ( !QMetaType::type("QTextCursor") )
                                qRegisterMetaType<QTextCursor>( "QTextCursor" );
                        scene = new QGraphicsScene();
                        scene->setItemIndexMethod( QGraphicsScene::NoIndex );