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

Qt: fix simple preferences alignment

parent c4bd5136
...@@ -587,6 +587,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent, ...@@ -587,6 +587,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
CONFIG_GENERIC( "qt-notification", IntegerList, ui.notificationComboLabel, CONFIG_GENERIC( "qt-notification", IntegerList, ui.notificationComboLabel,
notificationCombo ); notificationCombo );
CONNECT( ui.systrayBox, toggled( bool ), ui.notificationCombo, setEnabled( bool ) ); CONNECT( ui.systrayBox, toggled( bool ), ui.notificationCombo, setEnabled( bool ) );
CONNECT( ui.systrayBox, toggled( bool ), ui.notificationComboLabel, setEnabled( bool ) );
ui.notificationCombo->setEnabled( ui.systrayBox->isChecked() ); ui.notificationCombo->setEnabled( ui.systrayBox->isChecked() );
CONFIG_BOOL( "qt-pause-minimized", pauseMinimizedBox ); CONFIG_BOOL( "qt-pause-minimized", pauseMinimizedBox );
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>733</width> <width>733</width>
<height>544</height> <height>548</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy"> <property name="sizePolicy">
...@@ -257,10 +257,23 @@ ...@@ -257,10 +257,23 @@
<property name="topMargin"> <property name="topMargin">
<number>0</number> <number>0</number>
</property> </property>
<item row="3" column="0"> <item row="1" column="2" colspan="2">
<widget class="QCheckBox" name="minimalviewBox"> <widget class="QCheckBox" name="resizingBox">
<property name="text"> <property name="text">
<string>Start in minimal view mode</string> <string>Resize interface to video size</string>
</property>
</widget>
</item>
<item row="5" column="2" colspan="2">
<widget class="QComboBox" name="notificationCombo"/>
</item>
<item row="9" column="2" colspan="2">
<widget class="QComboBox" name="stylesCombo"/>
</item>
<item row="0" column="0" colspan="5">
<widget class="QCheckBox" name="fsController">
<property name="text">
<string>Show controls in full screen mode</string>
</property> </property>
</widget> </widget>
</item> </item>
...@@ -271,21 +284,24 @@ ...@@ -271,21 +284,24 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="0" colspan="3"> <item row="5" column="0">
<widget class="QCheckBox" name="fsController"> <widget class="QLabel" name="notificationComboLabel">
<property name="text"> <property name="text">
<string>Show controls in full screen mode</string> <string>Show media change popup:</string>
</property>
<property name="buddy">
<cstring>notificationCombo</cstring>
</property> </property>
</widget> </widget>
</item> </item>
<item row="5" column="0" rowspan="2"> <item row="3" column="0">
<widget class="QCheckBox" name="systrayBox"> <widget class="QCheckBox" name="minimalviewBox">
<property name="text"> <property name="text">
<string>Show systray icon</string> <string>Start in minimal view mode</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="8" column="0"> <item row="9" column="0">
<widget class="QLabel" name="stylesLabel"> <widget class="QLabel" name="stylesLabel">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Preferred"> <sizepolicy hsizetype="Maximum" vsizetype="Preferred">
...@@ -301,13 +317,6 @@ ...@@ -301,13 +317,6 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="2" colspan="2">
<widget class="QCheckBox" name="resizingBox">
<property name="text">
<string>Resize interface to video size</string>
</property>
</widget>
</item>
<item row="1" column="0"> <item row="1" column="0">
<widget class="QCheckBox" name="embedVideo"> <widget class="QCheckBox" name="embedVideo">
<property name="text"> <property name="text">
...@@ -315,8 +324,8 @@ ...@@ -315,8 +324,8 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="3" column="4"> <item row="1" column="1">
<spacer name="horizontalSpacer_7"> <spacer name="horizontalSpacer_3">
<property name="orientation"> <property name="orientation">
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
</property> </property>
...@@ -328,32 +337,26 @@ ...@@ -328,32 +337,26 @@
</property> </property>
</spacer> </spacer>
</item> </item>
<item row="3" column="1"> <item row="1" column="4">
<spacer name="horizontalSpacer_3"> <spacer name="horizontalSpacer_7">
<property name="orientation"> <property name="orientation">
<enum>Qt::Horizontal</enum> <enum>Qt::Horizontal</enum>
</property> </property>
<property name="sizeHint" stdset="0"> <property name="sizeHint" stdset="0">
<size> <size>
<width>40</width> <width>20</width>
<height>20</height> <height>20</height>
</size> </size>
</property> </property>
</spacer> </spacer>
</item> </item>
<item row="8" column="2" colspan="3"> <item row="4" column="0" colspan="2">
<widget class="QComboBox" name="stylesCombo"/> <widget class="QCheckBox" name="systrayBox">
</item>
<item row="5" column="1" colspan="2">
<widget class="QLabel" name="notificationComboLabel">
<property name="text"> <property name="text">
<string>Show media change popup:</string> <string>Show systray icon</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="5" column="3" colspan="2">
<widget class="QComboBox" name="notificationCombo"/>
</item>
</layout> </layout>
</widget> </widget>
</item> </item>
...@@ -485,9 +488,9 @@ ...@@ -485,9 +488,9 @@
</widget> </widget>
</item> </item>
<item row="3" column="0" colspan="2"> <item row="3" column="0" colspan="2">
<widget class="QGroupBox" name="playlistGroupBox"> <widget class="QGroupBox" name="osGroupBox">
<property name="title"> <property name="title">
<string>Playlist</string> <string>Operating System Integration</string>
</property> </property>
<layout class="QGridLayout" name="gridLayout_4"> <layout class="QGridLayout" name="gridLayout_4">
<item row="2" column="0"> <item row="2" column="0">
...@@ -640,19 +643,27 @@ ...@@ -640,19 +643,27 @@
<tabstop>qt</tabstop> <tabstop>qt</tabstop>
<tabstop>skins</tabstop> <tabstop>skins</tabstop>
<tabstop>fsController</tabstop> <tabstop>fsController</tabstop>
<tabstop>embedVideo</tabstop>
<tabstop>resizingBox</tabstop>
<tabstop>minimalviewBox</tabstop> <tabstop>minimalviewBox</tabstop>
<tabstop>pauseMinimizedBox</tabstop> <tabstop>pauseMinimizedBox</tabstop>
<tabstop>systrayBox</tabstop> <tabstop>systrayBox</tabstop>
<tabstop>notificationCombo</tabstop>
<tabstop>stylesCombo</tabstop> <tabstop>stylesCombo</tabstop>
<tabstop>OneInterfaceMode</tabstop> <tabstop>OneInterfaceMode</tabstop>
<tabstop>EnqueueOneInterfaceMode</tabstop> <tabstop>EnqueueOneInterfaceMode</tabstop>
<tabstop>oneInstanceFromFile</tabstop>
<tabstop>treePlaylist</tabstop>
<tabstop>playPauseBox</tabstop>
<tabstop>artFetcher</tabstop>
<tabstop>sqlMLbtn</tabstop>
<tabstop>updatesBox</tabstop> <tabstop>updatesBox</tabstop>
<tabstop>updatesDays</tabstop> <tabstop>updatesDays</tabstop>
<tabstop>saveRecentlyPlayed</tabstop> <tabstop>saveRecentlyPlayed</tabstop>
<tabstop>recentlyPlayedFilters</tabstop> <tabstop>recentlyPlayedFilters</tabstop>
<tabstop>assoButton</tabstop> <tabstop>assoButton</tabstop>
<tabstop>fileSkin</tabstop>
<tabstop>skinBrowse</tabstop> <tabstop>skinBrowse</tabstop>
<tabstop>fileSkin</tabstop>
</tabstops> </tabstops>
<resources/> <resources/>
<connections/> <connections/>
......
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