[vlc-devel] [PATCH 22/25] qt: add setting to change maininterface.pinVideoControls from preferences
Prince Gupta
guptaprince8832 at gmail.com
Thu Mar 11 09:16:30 UTC 2021
---
.../qt/dialogs/preferences/simple_preferences.cpp | 3 +++
.../gui/qt/dialogs/preferences/sprefs_interface.ui | 12 +++++++++++-
2 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/modules/gui/qt/dialogs/preferences/simple_preferences.cpp b/modules/gui/qt/dialogs/preferences/simple_preferences.cpp
index e3436c55b6..0693ad6a58 100644
--- a/modules/gui/qt/dialogs/preferences/simple_preferences.cpp
+++ b/modules/gui/qt/dialogs/preferences/simple_preferences.cpp
@@ -810,6 +810,9 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
CONFIG_BOOL( "metadata-network-access", MetadataNetworkAccessMode );
CONFIG_BOOL( "qt-menubar", menuBarCheck );
+ ui.pinVideoControlsCheckbox->setChecked( p_intf->p_sys->p_mi->pinVideoControls() );
+ QObject::connect( ui.pinVideoControlsCheckbox, &QCheckBox::stateChanged, p_intf->p_sys->p_mi, &MainInterface::setPinVideoControls );
+
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 );
diff --git a/modules/gui/qt/dialogs/preferences/sprefs_interface.ui b/modules/gui/qt/dialogs/preferences/sprefs_interface.ui
index cbc8eaaf60..9160eff82d 100644
--- a/modules/gui/qt/dialogs/preferences/sprefs_interface.ui
+++ b/modules/gui/qt/dialogs/preferences/sprefs_interface.ui
@@ -334,7 +334,17 @@
</property>
</widget>
</item>
- <item row="5" column="0">
+ <item row="5" column="0" colspan="2">
+ <widget class="QCheckBox" name="pinVideoControlsCheckbox">
+ <property name="toolTip">
+ <string>Disables autohiding of controls when playing videos</string>
+ </property>
+ <property name="text">
+ <string>Pin video controls</string>
+ </property>
+ </widget>
+ </item>
+ <item row="5" column="2">
<widget class="QCheckBox" name="titleBarCheckBox">
<property name="text">
<string>Enable window titlebar</string>
--
2.25.1
More information about the vlc-devel
mailing list