Commit bc195211 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt, Sprefs: hide the style selection on Win32 and fix it

parent 1a5ed68b
...@@ -543,7 +543,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent, ...@@ -543,7 +543,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
optionWidgets.append( ui.skins ); optionWidgets.append( ui.skins );
optionWidgets.append( ui.qt4 ); optionWidgets.append( ui.qt4 );
#if !defined(NDEBUG) || !defined( WIN32) #if !defined( WIN32)
ui.stylesCombo->addItem( qtr("System's default") ); ui.stylesCombo->addItem( qtr("System's default") );
ui.stylesCombo->addItems( QStyleFactory::keys() ); ui.stylesCombo->addItems( QStyleFactory::keys() );
ui.stylesCombo->setCurrentIndex( ui.stylesCombo->findText( ui.stylesCombo->setCurrentIndex( ui.stylesCombo->findText(
...@@ -556,6 +556,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent, ...@@ -556,6 +556,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
optionWidgets.append( ui.stylesCombo ); optionWidgets.append( ui.stylesCombo );
#else #else
ui.stylesCombo->hide(); ui.stylesCombo->hide();
ui.stylesLabel->hide();
optionWidgets.append( NULL ); optionWidgets.append( NULL );
#endif #endif
radioGroup = new QButtonGroup(this); radioGroup = new QButtonGroup(this);
......
...@@ -495,7 +495,7 @@ ...@@ -495,7 +495,7 @@
</widget> </widget>
</item> </item>
<item row="5" column="0"> <item row="5" column="0">
<widget class="QLabel" name="label"> <widget class="QLabel" name="stylesLabel">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Preferred"> <sizepolicy hsizetype="Maximum" vsizetype="Preferred">
<horstretch>0</horstretch> <horstretch>0</horstretch>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment