]> git.sesse.net Git - kdenlive/blobdiff - src/trackview.cpp
Add "Configure Tracks" dialog to change the settings (name, type, ...) of all tracks...
[kdenlive] / src / trackview.cpp
index a2f2de4e5c87a7581d12c91e90bb6cc397b3ac1d..9099c873bda38eec87f47d0b09c24df052e18d9f 100644 (file)
@@ -430,8 +430,8 @@ void TrackView::parseDocument(QDomDocument doc)
             ct++;
             backupFile = baseFile + "_backup" + QString::number(ct) + ".kdenlive";
         }
-        if (KIO::NetAccess::file_copy(m_doc->url(), KUrl(backupFile), this)) KMessageBox::information(this, i18n("Your project file was upgraded to the latest Kdenlive document version.\n To make sure you don't lose data, a backup copy called %1 was created.", backupFile));
-        else KMessageBox::information(this, i18n("Your project file was upgraded to the latest Kdenlive document version, it was not possible to create a backup copy.", backupFile));
+        if (KIO::NetAccess::file_copy(m_doc->url(), KUrl(backupFile), this)) KMessageBox::information(this, i18n("Your project file was upgraded to the latest Kdenlive document version.\nTo make sure you don't lose data, a backup copy called %1 was created.", backupFile));
+        else KMessageBox::information(this, i18n("Your project file was upgraded to the latest Kdenlive document version, but it was not possible to create a backup copy.", backupFile));
     }
     //m_trackview->setCursorPos(cursorPos);
     //m_scrollBox->setGeometry(0, 0, 300 * zoomFactor(), m_scrollArea->height());
@@ -537,6 +537,7 @@ void TrackView::slotRebuildTrackHeaders()
         connect(header, SIGNAL(insertTrack(int)), this, SIGNAL(insertTrack(int)));
         connect(header, SIGNAL(changeTrack(int)), this, SIGNAL(changeTrack(int)));
         connect(header, SIGNAL(renameTrack(int)), this, SLOT(slotRenameTrack(int)));
+        connect(header, SIGNAL(configTrack(int)), this, SIGNAL(configTrack(int)));
         headers_container->layout()->addWidget(header);
     }
     frame = new QFrame(this);
@@ -951,4 +952,9 @@ void TrackView::slotUpdateVerticalScroll(int /*min*/, int max)
     headers_container->layout()->setContentsMargins(0, m_trackview->frameWidth(), 0, height);
 }
 
+void TrackView::updateRuler()
+{
+    m_ruler->update();
+}
+
 #include "trackview.moc"