X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Ftitledocument.h;h=d73760a06ba9779722cd39dd3f3ecad219e7ef8e;hb=56aee6aedeeed3efd10ada8fe3c229eddc01ef05;hp=a00c8b7dca89b1a08276e921d9c8beed602c18ed;hpb=11a50a78e6d3c8bc7e1d189ec01233c4a33b7387;p=kdenlive diff --git a/src/titledocument.h b/src/titledocument.h index a00c8b7d..d73760a0 100644 --- a/src/titledocument.h +++ b/src/titledocument.h @@ -34,12 +34,12 @@ class TitleDocument public: TitleDocument(); void setScene(QGraphicsScene* scene, int width, int height); - bool saveDocument(const KUrl& url, QGraphicsRectItem* startv, QGraphicsRectItem* endv, int out, bool embed_images = false); + bool saveDocument(const KUrl& url, QGraphicsRectItem* startv, QGraphicsRectItem* endv, int duration, bool embed_images = false); QDomDocument xml(QGraphicsRectItem* startv, QGraphicsRectItem* endv, bool embed_images = false); - int loadFromXml(QDomDocument doc, QGraphicsRectItem* startv, QGraphicsRectItem* endv, int *out, const QString& projectpath = ""); + int loadFromXml(const QDomDocument& doc, QGraphicsRectItem* startv, QGraphicsRectItem* endv, int *duration, const QString& projectpath = QString()); /** \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(); + QColor getBackgroundColor() const; int frameWidth() const; int frameHeight() const; /** \brief Extract embeded images in project titles folder. */