[vlc-devel] [PATCH 6/9] Qt: spref, move DirectX specific options to the DirectX GroupBox

Pierre Lamot pierre at videolabs.io
Tue Dec 19 11:56:55 CET 2017


---
 modules/gui/qt/components/simple_preferences.cpp |  2 --
 modules/gui/qt/ui/sprefs_video.ui                | 33 ++++++++++++------------
 2 files changed, 16 insertions(+), 19 deletions(-)

diff --git a/modules/gui/qt/components/simple_preferences.cpp b/modules/gui/qt/components/simple_preferences.cpp
index 0e40eff9d6..8d4c66e8d8 100644
--- a/modules/gui/qt/components/simple_preferences.cpp
+++ b/modules/gui/qt/components/simple_preferences.cpp
@@ -369,8 +369,6 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
             CONNECT( ui.overlay, toggled( bool ), ui.hwYUVBox, setEnabled( bool ) );
 #else
             ui.directXBox->setVisible( false );
-            ui.overlay->setVisible( false );
-            ui.hwYUVBox->setVisible( false );
 #endif
 
 #ifdef __OS2__
diff --git a/modules/gui/qt/ui/sprefs_video.ui b/modules/gui/qt/ui/sprefs_video.ui
index 6c691f34ab..8ae654483f 100644
--- a/modules/gui/qt/ui/sprefs_video.ui
+++ b/modules/gui/qt/ui/sprefs_video.ui
@@ -8,7 +8,7 @@
     <x>0</x>
     <y>0</y>
     <width>682</width>
-    <height>577</height>
+    <height>649</height>
    </rect>
   </property>
   <property name="windowTitle">
@@ -70,13 +70,6 @@
            </property>
           </widget>
          </item>
-         <item row="1" column="0">
-          <widget class="QCheckBox" name="overlay">
-           <property name="text">
-            <string>Accelerated video output (Overlay)</string>
-           </property>
-          </widget>
-         </item>
          <item row="2" column="0">
           <widget class="QCheckBox" name="windowDecorations">
            <property name="text">
@@ -84,13 +77,6 @@
            </property>
           </widget>
          </item>
-         <item row="0" column="1">
-          <widget class="QCheckBox" name="hwYUVBox">
-           <property name="text">
-            <string>Use hardware YUV->RGB conversions</string>
-           </property>
-          </widget>
-         </item>
         </layout>
        </widget>
       </item>
@@ -100,7 +86,21 @@
          <string>DirectX</string>
         </property>
         <layout class="QGridLayout" name="gridLayout_4">
+         <item row="2" column="0">
+          <widget class="QCheckBox" name="hwYUVBox">
+           <property name="text">
+            <string>Use hardware YUV->RGB conversions</string>
+           </property>
+          </widget>
+         </item>
          <item row="0" column="0">
+          <widget class="QCheckBox" name="overlay">
+           <property name="text">
+            <string>Accelerated video output (Overlay)</string>
+           </property>
+          </widget>
+         </item>
+         <item row="3" column="0">
           <widget class="QLabel" name="dxDeviceLabel">
            <property name="text">
             <string>Display device</string>
@@ -110,7 +110,7 @@
            </property>
           </widget>
          </item>
-         <item row="0" column="1">
+         <item row="3" column="1">
           <widget class="QComboBox" name="dXdisplayDevice"/>
          </item>
         </layout>
@@ -316,7 +316,6 @@
  <tabstops>
   <tabstop>enableVideo</tabstop>
   <tabstop>fullscreen</tabstop>
-  <tabstop>overlay</tabstop>
   <tabstop>outputModule</tabstop>
   <tabstop>dXdisplayDevice</tabstop>
   <tabstop>kvaFixT23</tabstop>
-- 
2.14.1



More information about the vlc-devel mailing list