]> git.sesse.net Git - vlc/commitdiff
Qt: Font setting, restore the value from vlcrc.
authorJean-Baptiste Kempf <jb@videolan.org>
Mon, 3 Aug 2009 19:35:01 +0000 (21:35 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 3 Aug 2009 19:35:01 +0000 (21:35 +0200)
modules/gui/qt4/components/preferences_widgets.cpp

index 3474f7d0db3c49ffcdf9fe3454e462ba3d513208..2b6c99248f0f50caeda154daab9f3bbef5b176d5 100644 (file)
@@ -368,8 +368,6 @@ void DirectoryConfigControl::updateField()
     text->setText( toNativeSepNoSlash( dir ) );
 }
 
-#include <QFontComboBox>
-
 /********* String / Font **********/
 FontConfigControl::FontConfigControl( vlc_object_t *_p_this,
                         module_config_t *_p_item, QWidget *_parent,
@@ -378,6 +376,7 @@ FontConfigControl::FontConfigControl( vlc_object_t *_p_this,
 {
     label = new QLabel( qtr(p_item->psz_text) );
     font = new QFontComboBox( _parent );
+    font->setCurrentFont( QFont( qfu( p_item->value.psz) ) );
     if( !_p_layout )
     {
         QHBoxLayout *layout = new QHBoxLayout();
@@ -399,6 +398,7 @@ FontConfigControl::FontConfigControl( vlc_object_t *_p_this,
 {
     label = _p_label;
     font = _p_font;
+    font->setCurrentFont( QFont( qfu( p_item->value.psz) ) );
 }
 
 /********* String / choice list **********/