]> git.sesse.net Git - kdenlive/blobdiff - src/titledocument.h
Rewrite UI for title animation
[kdenlive] / src / titledocument.h
index 2d006475a620a71e46688bfd21ae7fe3c309460f..8b15bb5ffeb830dc2f4638d2d1ccb7cfc801c01f 100644 (file)
@@ -22,7 +22,7 @@
 #include <KUrl>
 
 class QGraphicsScene;
-class QGraphicsPolygonItem;
+class QGraphicsRectItem;
 
 class TitleDocument
 {
@@ -30,9 +30,9 @@ class TitleDocument
 public:
     TitleDocument();
     void setScene(QGraphicsScene* scene, int width, int height);
-    bool saveDocument(const KUrl& url, QGraphicsPolygonItem* startv, QGraphicsPolygonItem* endv, int out);
-    QDomDocument xml(QGraphicsPolygonItem* startv, QGraphicsPolygonItem* endv);
-    int loadFromXml(QDomDocument doc, QGraphicsPolygonItem* startv, QGraphicsPolygonItem* endv, int *out);
+    bool saveDocument(const KUrl& url, QGraphicsRectItem* startv, QGraphicsRectItem* endv, int out);
+    QDomDocument xml(QGraphicsRectItem* startv, QGraphicsRectItem* endv);
+    int loadFromXml(QDomDocument doc, QGraphicsRectItem* startv, QGraphicsRectItem* endv, int *out);
     /** \brief Get the background color (incl. alpha) from the document, if possibly
      * \returns The background color of the document, inclusive alpha. If none found, returns (0,0,0,0) */
     QColor getBackgroundColor();