]> git.sesse.net Git - vlc/commitdiff
Qt: convert, close #4523
authorJean-Baptiste Kempf <jb@videolan.org>
Thu, 6 Oct 2011 23:41:59 +0000 (01:41 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 6 Oct 2011 23:41:59 +0000 (01:41 +0200)
modules/gui/qt4/dialogs/convert.cpp
modules/gui/qt4/dialogs/convert.hpp

index 7ab50c159b4c7e47d8fae47921dcf2a084087258..94f5fe15312a983a38135418b651ba91a82138c7 100644 (file)
@@ -102,8 +102,10 @@ ConvertDialog::ConvertDialog( QWidget *parent, intf_thread_t *_p_intf,
 
     mainLayout->addWidget( buttonBox, 5, 3 );
 
-    BUTTONACT( okButton, close() );
-    BUTTONACT( cancelButton, cancel() );
+    BUTTONACT(okButton,close());
+    BUTTONACT(cancelButton,cancel());
+
+    CONNECT(dumpBox,toggled(bool),this,dumpChecked(bool));
 }
 
 void ConvertDialog::fileBrowse()
@@ -148,3 +150,9 @@ void ConvertDialog::close()
     accept();
 }
 
+void ConvertDialog::dumpChecked( bool checked )
+{
+    deinterBox->setEnabled( !checked );
+    displayBox->setEnabled( !checked );
+    profile->setEnabled( !checked );
+}
index 1df5186dd1ddf70eb8acd9239601062c507ef3a7..b23ae208a7725cebd79c075c66c13cedc3e0b309 100644 (file)
@@ -49,6 +49,7 @@ private slots:
     virtual void close();
     virtual void cancel();
     void fileBrowse();
+    void dumpChecked(bool);
 };
 
 #endif