]> git.sesse.net Git - mlt/blobdiff - src/modules/qimage/kdenlivetitle_wrapper.cpp
kdenlivetitle_wrapper.cpp: qt 4.4 fix for scale
[mlt] / src / modules / qimage / kdenlivetitle_wrapper.cpp
index 1e7589d169b07c544592432841de81a4df34790c..955d137d6d788896df6ba8fafbc8372e3c81ea7f 100644 (file)
@@ -135,7 +135,11 @@ void loadFromXml( mlt_producer producer, QGraphicsScene *scene, const char *temp
            int originalWidth = doc.documentElement().attribute("width").toInt();
            int originalHeight = doc.documentElement().attribute("height").toInt();
            if (originalWidth != width || originalHeight != height) {
+#if QT_VERSION < 0x40500
+            transform = QTransform().scale(  (double) width / originalWidth, (double) height / originalHeight );
+#else
                    transform = QTransform::fromScale ( (double) width / originalWidth, (double) height / originalHeight);
+#endif
            }
        }
        if ( titles.size() )