X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fkdenlivedoc.cpp;h=a205aafcaadc541fe1762a5c654c24b94e9fbf45;hb=e04bece5ff0797c3b06fcf8ff6a9c37762a1ec94;hp=ecdb4ab1ae3dd3c9556c75cdce50b0a7442771b8;hpb=90ab57b2d8336b079e6f6fdcad8bea38352bb798;p=kdenlive diff --git a/src/kdenlivedoc.cpp b/src/kdenlivedoc.cpp index ecdb4ab1..a205aafc 100644 --- a/src/kdenlivedoc.cpp +++ b/src/kdenlivedoc.cpp @@ -66,6 +66,7 @@ KdenliveDoc::KdenliveDoc(const KUrl &url, const KUrl &projectFolder, QUndoGroup // init default document properties m_documentProperties["zoom"] = "7"; + m_documentProperties["verticalzoom"] = "1"; m_documentProperties["zonein"] = "0"; m_documentProperties["zoneout"] = "100"; @@ -387,14 +388,15 @@ void KdenliveDoc::slotAutoSave() } } -void KdenliveDoc::setZoom(int factor) +void KdenliveDoc::setZoom(int horizontal, int vertical) { - m_documentProperties["zoom"] = QString::number(factor); + m_documentProperties["zoom"] = QString::number(horizontal); + m_documentProperties["verticalzoom"] = QString::number(vertical); } -int KdenliveDoc::zoom() const +QPoint KdenliveDoc::zoom() const { - return m_documentProperties.value("zoom").toInt(); + return QPoint(m_documentProperties.value("zoom").toInt(), m_documentProperties.value("verticalzoom").toInt()); } void KdenliveDoc::setZone(int start, int end)