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,
optionWidgets.append( ui.skins );
optionWidgets.append( ui.qt4 );
#if !defined(NDEBUG) || !defined( WIN32)
#if !defined( WIN32)
ui.stylesCombo->addItem( qtr("System's default") );
ui.stylesCombo->addItems( QStyleFactory::keys() );
ui.stylesCombo->setCurrentIndex( ui.stylesCombo->findText(
......@@ -556,6 +556,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
optionWidgets.append( ui.stylesCombo );
#else
ui.stylesCombo->hide();
ui.stylesLabel->hide();
optionWidgets.append( NULL );
#endif
radioGroup = new QButtonGroup(this);
......
......@@ -495,7 +495,7 @@
</widget>
</item>
<item row="5" column="0">
<widget class="QLabel" name="label">
<widget class="QLabel" name="stylesLabel">
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Preferred">
<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