/** \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 TitleDocument::getBackgroundColor()
+QColor TitleDocument::getBackgroundColor() const
{
QColor color(0, 0, 0, 0);
if (m_scene) {
return KIO::NetAccess::upload(tmpfile.fileName(), url, 0);
}
-int TitleDocument::loadFromXml(QDomDocument doc, QGraphicsRectItem* startv, QGraphicsRectItem* endv, int *duration, const QString& projectpath)
+int TitleDocument::loadFromXml(const QDomDocument& doc, QGraphicsRectItem* startv, QGraphicsRectItem* endv, int *duration, const QString& projectpath)
{
m_projectPath = projectpath;
QDomNodeList titles = doc.elementsByTagName("kdenlivetitle");
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. */
return tracks;
}
-QList <int> TracksConfigDialog::deletedTracks()
+QList <int> TracksConfigDialog::deletedTracks() const
{
return m_deletedRows;
}
const QList <TrackInfo> tracksList();
/** @brief A list of tracks, which sould be deleted. */
- QList <int> deletedTracks();
+ QList <int> deletedTracks() const;
private slots:
/** @brief Updates the "hidden" checkbox if type was changed. */