X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fkdenlivedoc.cpp;h=01cd32e3397d052a6e9bfd9e69ee155975b8156a;hb=5d4746e4c3e8665de83e6d281dcd08a46cd22c31;hp=9a6e1b29a40d9051fbaa6969cada1621e1475e89;hpb=07c0f30adea324a848d8c09ce9fe409819855dd7;p=kdenlive diff --git a/src/kdenlivedoc.cpp b/src/kdenlivedoc.cpp index 9a6e1b29..01cd32e3 100644 --- a/src/kdenlivedoc.cpp +++ b/src/kdenlivedoc.cpp @@ -35,7 +35,7 @@ #include #include #include -#include +#include #include #include #include @@ -50,6 +50,9 @@ #include #include #include +#include +#include +#include #include @@ -577,7 +580,7 @@ QDomDocument KdenliveDoc::createEmptyDocument(const QList &tracks) } -void KdenliveDoc::syncGuides(QList guides) +void KdenliveDoc::syncGuides(const QList &guides) { m_guidesXml.clear(); QDomElement guideNode = m_guidesXml.createElement("guides"); @@ -886,8 +889,10 @@ MltVideoProfile KdenliveDoc::mltProfile() const bool KdenliveDoc::setProfilePath(QString path) { - if (path.isEmpty()) path = KdenliveSettings::default_profile(); - if (path.isEmpty()) path = "dv_pal"; + if (path.isEmpty()) + path = KdenliveSettings::default_profile(); + if (path.isEmpty()) + path = QLatin1String("dv_pal"); m_profile = ProfilesDialog::getVideoProfile(path); double current_fps = m_fps; if (m_profile.path.isEmpty()) { @@ -990,7 +995,7 @@ void KdenliveDoc::updateClip(const QString &id) emit updateClipDisplay(id); } -int KdenliveDoc::getFramePos(QString duration) +int KdenliveDoc::getFramePos(const QString &duration) { return m_timecode.getFrameCount(duration); }