]> git.sesse.net Git - vlc/commitdiff
Qt: sprefs, add the systray popup on minize on the main page
authorJean-Baptiste Kempf <jb@videolan.org>
Fri, 15 Jan 2010 17:49:51 +0000 (18:49 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Fri, 15 Jan 2010 17:50:26 +0000 (18:50 +0100)
modules/gui/qt4/components/simple_preferences.cpp
modules/gui/qt4/ui/sprefs_interface.ui

index 2f4e6d5f1c42ae2804f30153b62f048c844ed06d..e8542daa5ee45b0c2edd675ae7f3a485565dfdb5 100644 (file)
@@ -552,6 +552,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
             CONFIG_GENERIC( "embedded-video", Bool, NULL, embedVideo );
             CONFIG_GENERIC( "qt-fs-controller", Bool, NULL, fsController );
             CONFIG_GENERIC( "qt-system-tray", Bool, NULL, systrayBox );
+            CONFIG_GENERIC( "qt-notification", Bool, NULL, sysPop );
             CONFIG_GENERIC_FILE( "skins2-last", File, ui.skinFileLabel,
                                  ui.fileSkin, ui.skinBrowse );
             CONFIG_GENERIC( "qt-video-autoresize", Bool, NULL, resizingBox );
index dd69bfb0b6c7246b607f9142ee27b03aef1b3bc9..87bd9240cefa6d971171cb9bc7d446d99c83253e 100644 (file)
@@ -7,7 +7,7 @@
    <rect>
     <x>0</x>
     <y>0</y>
-    <width>745</width>
+    <width>802</width>
     <height>651</height>
    </rect>
   </property>
       </item>
       <item row="0" column="2" rowspan="3" colspan="2">
        <widget class="QWidget" name="native_zone" native="true">
+        <property name="sizePolicy">
+         <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
+          <horstretch>10</horstretch>
+          <verstretch>0</verstretch>
+         </sizepolicy>
+        </property>
         <layout class="QGridLayout" name="gridLayout_4">
          <property name="margin">
           <number>0</number>
            </property>
           </widget>
          </item>
-         <item row="7" column="1">
-          <widget class="QCheckBox" name="fsController">
-           <property name="text">
-            <string>Show controls in full screen mode</string>
-           </property>
-          </widget>
-         </item>
          <item row="0" column="0">
           <widget class="QLabel" name="displayLabel">
            <property name="sizePolicy">
            </property>
           </widget>
          </item>
-         <item row="4" column="1">
-          <widget class="QCheckBox" name="systrayBox">
-           <property name="text">
-            <string>Show systray icon</string>
-           </property>
-          </widget>
-         </item>
          <item row="4" column="0">
           <widget class="QCheckBox" name="resizingBox">
            <property name="text">
            </property>
           </widget>
          </item>
-         <item row="7" column="0">
-          <widget class="QCheckBox" name="embedVideo">
-           <property name="text">
-            <string>Embed video in interface</string>
-           </property>
-          </widget>
-         </item>
          <item row="8" column="1">
           <widget class="QComboBox" name="stylesCombo"/>
          </item>
            </property>
           </widget>
          </item>
+         <item row="5" column="0">
+          <widget class="QCheckBox" name="systrayBox">
+           <property name="text">
+            <string>Show systray icon</string>
+           </property>
+          </widget>
+         </item>
+         <item row="4" column="1">
+          <widget class="QCheckBox" name="embedVideo">
+           <property name="text">
+            <string>Embed video in interface</string>
+           </property>
+          </widget>
+         </item>
+         <item row="6" column="0">
+          <widget class="QCheckBox" name="fsController">
+           <property name="text">
+            <string>Show controls in full screen mode</string>
+           </property>
+          </widget>
+         </item>
+         <item row="5" column="1">
+          <widget class="QCheckBox" name="sysPop">
+           <property name="text">
+            <string> Systray popup when minimized</string>
+           </property>
+          </widget>
+         </item>
         </layout>
        </widget>
       </item>