]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/components/preferences_widgets.cpp
Qt4- SImple Preferences. Add file and directory configuration.
[vlc] / modules / gui / qt4 / components / preferences_widgets.cpp
index f79e0ec8463e140c2fa51966cccb19a6be6e4e70..15a092ebcd7f30c9c45c24ed0928313bd42975d6 100644 (file)
@@ -243,11 +243,16 @@ FileConfigControl::FileConfigControl( vlc_object_t *_p_this,
 
 FileConfigControl::FileConfigControl( vlc_object_t *_p_this,
                                    module_config_t *_p_item,
-                                   QLabel *_label, QLineEdit *_text, bool pwd ):
+                                   QLabel *_label, QLineEdit *_text, 
+                                   QPushButton *_button, bool pwd ):
                            VStringConfigControl( _p_this, _p_item )
 {
+    browse = _button;
     text = _text;
     label = _label;
+
+    BUTTONACT( browse, updateField() );
+
     finish( );
 }
 
@@ -275,8 +280,8 @@ DirectoryConfigControl::DirectoryConfigControl( vlc_object_t *_p_this,
 
 DirectoryConfigControl::DirectoryConfigControl( vlc_object_t *_p_this,
                         module_config_t *_p_item, QLabel *_p_label,
-                        QLineEdit *_p_line, bool _pwd ) :
-     FileConfigControl( _p_this, _p_item, _p_label, _p_line, _pwd)
+                        QLineEdit *_p_line, QPushButton *_p_button, bool _pwd ):
+     FileConfigControl( _p_this, _p_item, _p_label, _p_line, _p_button, _pwd)
 {}