[vlc-commits] Qt: convert, close #4523

Jean-Baptiste Kempf git at videolan.org
Fri Oct 7 01:42:24 CEST 2011


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Oct  7 01:41:59 2011 +0200| [87166815782255ced26a3656708bc457437bc490] | committer: Jean-Baptiste Kempf

Qt: convert, close #4523

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=87166815782255ced26a3656708bc457437bc490
---

 modules/gui/qt4/dialogs/convert.cpp |   12 ++++++++++--
 modules/gui/qt4/dialogs/convert.hpp |    1 +
 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/modules/gui/qt4/dialogs/convert.cpp b/modules/gui/qt4/dialogs/convert.cpp
index 7ab50c1..94f5fe1 100644
--- a/modules/gui/qt4/dialogs/convert.cpp
+++ b/modules/gui/qt4/dialogs/convert.cpp
@@ -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 );
+}
diff --git a/modules/gui/qt4/dialogs/convert.hpp b/modules/gui/qt4/dialogs/convert.hpp
index 1df5186..b23ae20 100644
--- a/modules/gui/qt4/dialogs/convert.hpp
+++ b/modules/gui/qt4/dialogs/convert.hpp
@@ -49,6 +49,7 @@ private slots:
     virtual void close();
     virtual void cancel();
     void fileBrowse();
+    void dumpChecked(bool);
 };
 
 #endif



More information about the vlc-commits mailing list