]> git.sesse.net Git - kdenlive/blobdiff - src/kdenlivedoc.cpp
Rewrote the handling of timeline in QGraphicsView. Now we use the built in zoom featu...
[kdenlive] / src / kdenlivedoc.cpp
index 561f411fe89983786f23287fc6a8d0380d36b86d..1fa272f2dc0581639e560530dc28a20e5b36fbcc 100644 (file)
@@ -408,6 +408,7 @@ void KdenliveDoc::setProfilePath(QString path) {
     if (path.isEmpty()) path = KdenliveSettings::default_profile();
     if (path.isEmpty()) path = "dv_pal";
     m_profile = ProfilesDialog::getVideoProfile(path);
+    KdenliveSettings::setProject_display_ratio((double) m_profile.display_aspect_num / m_profile.display_aspect_den);
     m_fps = (double) m_profile.frame_rate_num / m_profile.frame_rate_den;
     m_width = m_profile.width;
     m_height = m_profile.height;
@@ -416,6 +417,10 @@ void KdenliveDoc::setProfilePath(QString path) {
     else m_timecode.setFormat((int) m_fps);
 }
 
+const double KdenliveDoc::dar() {
+    return (double) m_profile.display_aspect_num / m_profile.display_aspect_den;
+}
+
 void KdenliveDoc::setThumbsProgress(const QString &message, int progress) {
     emit progressInfo(message, progress);
 }