]> git.sesse.net Git - kdenlive/blobdiff - src/projectsettings.cpp
Add non realtime preview mode to Kdenlive (available from monitor context menu)
[kdenlive] / src / projectsettings.cpp
index 94bf02fbfad72e57568506cdfac52689226a7d6a..c27f5398f4cde32adf96f4f9274d3fb762e09a91 100644 (file)
@@ -26,7 +26,8 @@
 
 #include <QDir>
 
-ProjectSettings::ProjectSettings(int videotracks, int audiotracks, const QString projectPath, bool readOnlyTracks, QWidget * parent): QDialog(parent), m_isCustomProfile(false)
+ProjectSettings::ProjectSettings(int videotracks, int audiotracks, const QString projectPath, bool readOnlyTracks, QWidget * parent) :
+        QDialog(parent)
 {
     m_view.setupUi(this);
 
@@ -47,7 +48,7 @@ ProjectSettings::ProjectSettings(int videotracks, int audiotracks, const QString
         }
     }
 
-    buttonOk = m_view.buttonBox->button(QDialogButtonBox::Ok);
+    m_buttonOk = m_view.buttonBox->button(QDialogButtonBox::Ok);
     //buttonOk->setEnabled(false);
     m_view.audio_thumbs->setChecked(KdenliveSettings::audiothumbnails());
     m_view.video_thumbs->setChecked(KdenliveSettings::videothumbnails());
@@ -77,8 +78,8 @@ void ProjectSettings::slotUpdateDisplay()
 
 void ProjectSettings::slotUpdateButton(const QString &path)
 {
-    if (path.isEmpty()) buttonOk->setEnabled(false);
-    else buttonOk->setEnabled(true);
+    if (path.isEmpty()) m_buttonOk->setEnabled(false);
+    else m_buttonOk->setEnabled(true);
 }
 
 QString ProjectSettings::selectedProfile() const