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,
qtr("Subtitles & On Screen Display Settings") );
CONFIG_BOOL( "osd", OSDBox);
CONFIG_BOOL( "video-title-show", OSDTitleBox);
CONFIG_GENERIC( "video-title-position", IntegerList,
ui.OSDTitlePosLabel, OSDTitlePos );
CONFIG_GENERIC( "subsdec-encoding", StringList, ui.encodLabel,
encoding );
......
......@@ -23,21 +23,43 @@
<property name="title">
<string>On Screen Display</string>
</property>
<layout class="QVBoxLayout">
<item>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QCheckBox" name="OSDBox">
<property name="text">
<string>Enable On Screen Display (OSD)</string>
</property>
</widget>
</item>
<item>
<item row="1" column="0">
<widget class="QCheckBox" name="OSDTitleBox">
<property name="text">
<string>Show media title on video start</string>
</property>
</widget>
</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>
</widget>
</item>
......@@ -247,6 +269,7 @@
<tabstops>
<tabstop>OSDBox</tabstop>
<tabstop>OSDTitleBox</tabstop>
<tabstop>OSDTitlePos</tabstop>
<tabstop>preferredLanguage</tabstop>
<tabstop>encoding</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