Commit 9d99a7ab authored by Francois Cartegnie's avatar Francois Cartegnie

Qt: simple_prefs pack UI

parent 098b32ee
...@@ -564,12 +564,12 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent, ...@@ -564,12 +564,12 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
ui.stylesCombo->hide(); ui.stylesCombo->hide();
optionWidgets.append( NULL ); optionWidgets.append( NULL );
#endif #endif
radioGroup = new QButtonGroup(this);
ui.skins_zone->setEnabled( ui.skins->isChecked() ); radioGroup->addButton( ui.qt4, 0 );
CONNECT( ui.skins, toggled( bool ), ui.skins_zone, setEnabled( bool ) ); radioGroup->addButton( ui.skins, 1 );
CONNECT( radioGroup, buttonClicked( int ),
ui.native_zone->setEnabled( ui.qt4->isChecked() ); ui.styleStackedWidget, setCurrentIndex( int ) );
CONNECT( ui.qt4, toggled( bool ), ui.native_zone, setEnabled( bool ) ); ui.styleStackedWidget->setCurrentIndex( radioGroup->checkedId() );
CONNECT( ui.minimalviewBox, toggled( bool ), CONNECT( ui.minimalviewBox, toggled( bool ),
ui.mainPreview, setNormalPreview( bool ) ); ui.mainPreview, setNormalPreview( bool ) );
...@@ -598,8 +598,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent, ...@@ -598,8 +598,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
CONNECT( ui.updatesBox, toggled( bool ), CONNECT( ui.updatesBox, toggled( bool ),
ui.updatesDays, setEnabled( bool ) ); ui.updatesDays, setEnabled( bool ) );
#else #else
ui.updatesBox->hide(); ui.updateNotifierZone->hide();
ui.updatesDays->hide();
#endif #endif
/* ONE INSTANCE options */ /* ONE INSTANCE options */
#if defined( WIN32 ) || defined( HAVE_DBUS ) || defined(__APPLE__) #if defined( WIN32 ) || defined( HAVE_DBUS ) || defined(__APPLE__)
......
...@@ -121,6 +121,7 @@ private: ...@@ -121,6 +121,7 @@ private:
QList<QWidget *> optionWidgets; QList<QWidget *> optionWidgets;
QStringList qs_filter; QStringList qs_filter;
QButtonGroup *radioGroup;
#ifdef WIN32 #ifdef WIN32
QList<QTreeWidgetItem *> listAsso; QList<QTreeWidgetItem *> listAsso;
......
This diff is collapsed.
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