[vlc-devel] [PATCH 06/16] qt: add option to change csd settings in preferences

Prince Gupta guptaprince8832 at gmail.com
Tue Feb 23 10:05:56 UTC 2021


---
 .../preferences/simple_preferences.cpp        |  6 +++++
 .../dialogs/preferences/sprefs_interface.ui   | 23 ++++++++++++-------
 2 files changed, 21 insertions(+), 8 deletions(-)

diff --git a/modules/gui/qt/dialogs/preferences/simple_preferences.cpp b/modules/gui/qt/dialogs/preferences/simple_preferences.cpp
index 1225e9e950..d92c94d990 100644
--- a/modules/gui/qt/dialogs/preferences/simple_preferences.cpp
+++ b/modules/gui/qt/dialogs/preferences/simple_preferences.cpp
@@ -809,6 +809,12 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
             ui.colorSchemeComboBox->insertItems(0, p_intf->p_sys->p_mi->getColorScheme()->stringList());
             QObject::connect( ui.colorSchemeComboBox, &QComboBox::currentTextChanged, p_intf->p_sys->p_mi->getColorScheme(), &ColorSchemeModel::setCurrent );
 
+#if QT_VERSION >= QT_VERSION_CHECK(5, 15, 0)
+            CONFIG_BOOL( "qt-titlebar", titleBarCheckBox );
+#else
+            ui.titleBarCheckBox->hide();
+#endif
+
             /* UPDATE options */
 #ifdef UPDATE_CHECK
             CONFIG_BOOL( "qt-updates-notif", updatesBox );
diff --git a/modules/gui/qt/dialogs/preferences/sprefs_interface.ui b/modules/gui/qt/dialogs/preferences/sprefs_interface.ui
index 3d061946ec..b14aacf247 100644
--- a/modules/gui/qt/dialogs/preferences/sprefs_interface.ui
+++ b/modules/gui/qt/dialogs/preferences/sprefs_interface.ui
@@ -178,10 +178,10 @@
                </property>
               </widget>
              </item>
-             <item row="5" column="2" colspan="2">
+             <item row="6" column="2" colspan="2">
               <widget class="QComboBox" name="notificationCombo"/>
              </item>
-             <item row="9" column="2" colspan="2">
+             <item row="10" column="2" colspan="2">
               <widget class="QComboBox" name="stylesCombo"/>
              </item>
              <item row="0" column="0" colspan="5">
@@ -198,7 +198,7 @@
                </property>
               </widget>
              </item>
-             <item row="5" column="0">
+             <item row="6" column="0">
               <widget class="QLabel" name="notificationComboLabel">
                <property name="text">
                 <string>Show media change popup:</string>
@@ -215,7 +215,7 @@
                </property>
               </widget>
              </item>
-             <item row="9" column="0">
+             <item row="10" column="0">
               <widget class="QLabel" name="stylesLabel">
                <property name="sizePolicy">
                 <sizepolicy hsizetype="Maximum" vsizetype="Preferred">
@@ -271,7 +271,7 @@
                </property>
               </widget>
              </item>
-             <item row="11" column="0">
+             <item row="12" column="0">
               <widget class="QLabel" name="autoRaiseLabel">
                <property name="text">
                 <string>Auto raising the interface:</string>
@@ -281,10 +281,10 @@
                </property>
               </widget>
              </item>
-             <item row="11" column="2" colspan="2">
+             <item row="12" column="2" colspan="2">
               <widget class="QComboBox" name="autoRaiseComboBox"/>
              </item>
-             <item row="12" column="0">
+             <item row="13" column="0">
               <widget class="QLabel" name="colorSchemeLabel">
                <property name="text">
                 <string>Color Scheme:</string>
@@ -294,7 +294,7 @@
                </property>
               </widget>
              </item>
-             <item row="12" column="2" colspan="2">
+             <item row="13" column="2" colspan="2">
               <widget class="QComboBox" name="colorSchemeComboBox"/>
              </item>
              <item row="4" column="2">
@@ -304,6 +304,13 @@
                </property>
               </widget>
              </item>
+             <item row="5" column="0">
+              <widget class="QCheckBox" name="titleBarCheckBox">
+               <property name="text">
+                <string>Enable window titlebar</string>
+               </property>
+              </widget>
+             </item>
             </layout>
            </widget>
           </item>
-- 
2.25.1



More information about the vlc-devel mailing list