X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Ftitledocument.h;h=d73760a06ba9779722cd39dd3f3ecad219e7ef8e;hb=eafc34b6b1318c71b097bb5ad609f37f2eb62d04;hp=8c30827cf1284489ece79da19004e4bf51310d79;hpb=1a57025e45748243a7a6075f5df0be47f8ffbce2;p=kdenlive diff --git a/src/titledocument.h b/src/titledocument.h index 8c30827c..d73760a0 100644 --- a/src/titledocument.h +++ b/src/titledocument.h @@ -36,10 +36,10 @@ public: void setScene(QGraphicsScene* scene, int width, int height); 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 *duration, const QString& projectpath = QString()); + 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. */