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

Qt: add the minimize-on-pause option in the SPrefs...

parent 588c2528
...@@ -596,6 +596,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent, ...@@ -596,6 +596,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
CONNECT( ui.systrayBox, toggled( bool ), ui.sysPop, setEnabled( bool ) ); CONNECT( ui.systrayBox, toggled( bool ), ui.sysPop, setEnabled( bool ) );
ui.sysPop->setEnabled( ui.systrayBox->isChecked() ); ui.sysPop->setEnabled( ui.systrayBox->isChecked() );
CONFIG_BOOL( "qt-pause-minimized", pauseMinimizedBox );
CONFIG_BOOL( "playlist-tree", treePlaylist ); CONFIG_BOOL( "playlist-tree", treePlaylist );
CONFIG_GENERIC_FILE( "skins2-last", File, ui.skinFileLabel, CONFIG_GENERIC_FILE( "skins2-last", File, ui.skinFileLabel,
ui.fileSkin, ui.skinBrowse ); ui.fileSkin, ui.skinBrowse );
......
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>697</width> <width>699</width>
<height>594</height> <height>627</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy"> <property name="sizePolicy">
...@@ -319,6 +319,52 @@ ...@@ -319,6 +319,52 @@
</property> </property>
</spacer> </spacer>
</item> </item>
<item row="0" column="1">
<spacer name="horizontalSpacer_4">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="2">
<widget class="QRadioButton" name="qt4">
<property name="toolTip">
<string>This is VLC's default interface, with a native look and feel.</string>
</property>
<property name="text">
<string>Use native style</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item row="0" column="3">
<spacer name="horizontalSpacer_5">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="1" column="2" colspan="3">
<widget class="Line" name="line">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
<item row="2" column="0" rowspan="6" colspan="7"> <item row="2" column="0" rowspan="6" colspan="7">
<widget class="QStackedWidget" name="styleStackedWidget"> <widget class="QStackedWidget" name="styleStackedWidget">
<property name="currentIndex"> <property name="currentIndex">
...@@ -369,67 +415,56 @@ ...@@ -369,67 +415,56 @@
</sizepolicy> </sizepolicy>
</property> </property>
<layout class="QGridLayout" name="gridLayout_4"> <layout class="QGridLayout" name="gridLayout_4">
<property name="margin"> <item row="0" column="0" colspan="2">
<number>0</number> <widget class="QCheckBox" name="fsController">
</property>
<item row="7" column="0">
<widget class="QCheckBox" name="systrayBox">
<property name="text">
<string>Show systray icon</string>
</property>
</widget>
</item>
<item row="7" column="1">
<widget class="QCheckBox" name="sysPop">
<property name="text"> <property name="text">
<string>Systray popup when minimized</string> <string>Show controls in full screen mode</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="0"> <item row="1" column="0">
<widget class="QCheckBox" name="fsController"> <widget class="QCheckBox" name="minimalviewBox">
<property name="text"> <property name="text">
<string>Show controls in full screen mode</string> <string>Start in minimal view mode</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="1"> <item row="1" column="1" colspan="2">
<widget class="QCheckBox" name="minimalviewBox"> <widget class="QCheckBox" name="pauseMinimizedBox">
<property name="text"> <property name="text">
<string>Start in minimal view mode</string> <string>Pause playback when minimized</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="5" column="0"> <item row="2" column="0">
<widget class="QCheckBox" name="embedVideo"> <widget class="QCheckBox" name="embedVideo">
<property name="text"> <property name="text">
<string>Integrate video in interface</string> <string>Integrate video in interface</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="5" column="1"> <item row="2" column="1" colspan="2">
<widget class="QCheckBox" name="resizingBox"> <widget class="QCheckBox" name="resizingBox">
<property name="text"> <property name="text">
<string>Resize interface to video size</string> <string>Resize interface to video size</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="8" column="0" rowspan="2" colspan="2"> <item row="3" column="0" rowspan="2">
<layout class="QHBoxLayout" name="horizontalLayout"> <widget class="QCheckBox" name="systrayBox">
<item> <property name="text">
<spacer name="horizontalSpacer_3"> <string>Show systray icon</string>
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property> </property>
<property name="sizeHint" stdset="0"> </widget>
<size> </item>
<width>40</width> <item row="3" column="1" rowspan="2" colspan="2">
<height>20</height> <widget class="QCheckBox" name="sysPop">
</size> <property name="text">
<string>Systray popup when minimized</string>
</property> </property>
</spacer> </widget>
</item> </item>
<item> <item row="5" column="0">
<widget class="QLabel" name="label"> <widget class="QLabel" name="label">
<property name="sizePolicy"> <property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Preferred"> <sizepolicy hsizetype="Maximum" vsizetype="Preferred">
...@@ -445,12 +480,10 @@ ...@@ -445,12 +480,10 @@
</property> </property>
</widget> </widget>
</item> </item>
<item> <item row="5" column="1" colspan="2">
<widget class="QComboBox" name="stylesCombo"/> <widget class="QComboBox" name="stylesCombo"/>
</item> </item>
</layout> </layout>
</item>
</layout>
</widget> </widget>
</item> </item>
</layout> </layout>
...@@ -577,52 +610,6 @@ ...@@ -577,52 +610,6 @@
</widget> </widget>
</widget> </widget>
</item> </item>
<item row="0" column="1">
<spacer name="horizontalSpacer_4">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="0" column="2">
<widget class="QRadioButton" name="qt4">
<property name="toolTip">
<string>This is VLC's default interface, with a native look and feel.</string>
</property>
<property name="text">
<string>Use native style</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item row="0" column="3">
<spacer name="horizontalSpacer_5">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="1" column="2" colspan="3">
<widget class="Line" name="line">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
</widget>
</item>
</layout> </layout>
</widget> </widget>
</item> </item>
...@@ -641,6 +628,7 @@ ...@@ -641,6 +628,7 @@
<tabstop>skins</tabstop> <tabstop>skins</tabstop>
<tabstop>fsController</tabstop> <tabstop>fsController</tabstop>
<tabstop>minimalviewBox</tabstop> <tabstop>minimalviewBox</tabstop>
<tabstop>pauseMinimizedBox</tabstop>
<tabstop>embedVideo</tabstop> <tabstop>embedVideo</tabstop>
<tabstop>resizingBox</tabstop> <tabstop>resizingBox</tabstop>
<tabstop>systrayBox</tabstop> <tabstop>systrayBox</tabstop>
......
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