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

Qt, sprefs: add configuration for OSD Title position

parent cb085c10
...@@ -639,7 +639,8 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent, ...@@ -639,7 +639,8 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
qtr("Subtitles & On Screen Display Settings") ); qtr("Subtitles & On Screen Display Settings") );
CONFIG_BOOL( "osd", OSDBox); CONFIG_BOOL( "osd", OSDBox);
CONFIG_BOOL( "video-title-show", OSDTitleBox); CONFIG_BOOL( "video-title-show", OSDTitleBox);
CONFIG_GENERIC( "video-title-position", IntegerList,
ui.OSDTitlePosLabel, OSDTitlePos );
CONFIG_GENERIC( "subsdec-encoding", StringList, ui.encodLabel, CONFIG_GENERIC( "subsdec-encoding", StringList, ui.encodLabel,
encoding ); encoding );
......
...@@ -23,21 +23,43 @@ ...@@ -23,21 +23,43 @@
<property name="title"> <property name="title">
<string>On Screen Display</string> <string>On Screen Display</string>
</property> </property>
<layout class="QVBoxLayout"> <layout class="QGridLayout" name="gridLayout">
<item> <item row="0" column="0">
<widget class="QCheckBox" name="OSDBox"> <widget class="QCheckBox" name="OSDBox">
<property name="text"> <property name="text">
<string>Enable On Screen Display (OSD)</string> <string>Enable On Screen Display (OSD)</string>
</property> </property>
</widget> </widget>
</item> </item>
<item> <item row="1" column="0">
<widget class="QCheckBox" name="OSDTitleBox"> <widget class="QCheckBox" name="OSDTitleBox">
<property name="text"> <property name="text">
<string>Show media title on video start</string> <string>Show media title on video start</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="2">
<widget class="QComboBox" name="OSDTitlePos"/>
</item>
<item row="1" column="1">
<widget class="QLabel" name="OSDTitlePosLabel">
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="text">
<string>Position</string>
</property>
<property name="alignment">
<set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
</property>
<property name="buddy">
<cstring>OSDTitlePos</cstring>
</property>
</widget>
</item>
</layout> </layout>
</widget> </widget>
</item> </item>
...@@ -247,6 +269,7 @@ ...@@ -247,6 +269,7 @@
<tabstops> <tabstops>
<tabstop>OSDBox</tabstop> <tabstop>OSDBox</tabstop>
<tabstop>OSDTitleBox</tabstop> <tabstop>OSDTitleBox</tabstop>
<tabstop>OSDTitlePos</tabstop>
<tabstop>preferredLanguage</tabstop> <tabstop>preferredLanguage</tabstop>
<tabstop>encoding</tabstop> <tabstop>encoding</tabstop>
<tabstop>font</tabstop> <tabstop>font</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