]> git.sesse.net Git - mlt/commitdiff
fix QObject::connect of type QTextCursor errors
authorDan Dennedy <dan@dennedy.org>
Thu, 1 Mar 2012 02:31:55 +0000 (18:31 -0800)
committerDan Dennedy <dan@dennedy.org>
Thu, 1 Mar 2012 02:31:55 +0000 (18:31 -0800)
src/modules/qimage/kdenlivetitle_wrapper.cpp

index 746f382891eb3ff5d893e819b27bf93309ab89d7..f12a8e71bfcb2f547cb848eb74bd3a0f08434a87 100755 (executable)
@@ -197,6 +197,7 @@ void loadFromXml( mlt_producer producer, QGraphicsScene *scene, const char *temp
                                }
                                QGraphicsTextItem *txt = scene->addText(text, font);
                                if (txtProperties.namedItem("font-outline").nodeValue().toDouble()>0.0){
+                                       qRegisterMetaType<QTextCursor>( "QTextCursor" );
                                        QTextCursor cursor(txt->document());
                                        cursor.select(QTextCursor::Document);
                                        QTextCharFormat format;
@@ -440,7 +441,8 @@ void drawKdenliveTitle( producer_ktitle self, mlt_frame frame, int width, int he
                                    // the keystroke delay and a start offset, both in frames
                                    QStringList values = params.at( 2 ).split( ";" );
                                    int interval = qMax( 0, ( ( int ) position - values.at( 1 ).toInt()) / values.at( 0 ).toInt() );
-                                   QTextCursor cursor = titem->textCursor();
+                                       qRegisterMetaType<QTextCursor>( "QTextCursor" );
+                                       QTextCursor cursor = titem->textCursor();
                                    cursor.movePosition(QTextCursor::EndOfBlock);
                                    // get the font format
                                    QTextCharFormat format = cursor.charFormat();