[vlc-devel] commit: Qt4: Sprefs, add sub-margin. (Jean-Baptiste Kempf )
git version control
git at videolan.org
Tue Sep 23 00:14:59 CEST 2008
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Sep 22 15:14:57 2008 -0700| [039dbffd22c47fd4ad4a7577c17c3f6a9a409f99] | committer: Jean-Baptiste Kempf
Qt4: Sprefs, add sub-margin.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=039dbffd22c47fd4ad4a7577c17c3f6a9a409f99
---
modules/gui/qt4/components/simple_preferences.cpp | 1 +
modules/gui/qt4/ui/sprefs_subtitles.ui | 30 +++++++++++++++++++-
2 files changed, 29 insertions(+), 2 deletions(-)
diff --git a/modules/gui/qt4/components/simple_preferences.cpp b/modules/gui/qt4/components/simple_preferences.cpp
index 0bf9d97..9ffacc0 100644
--- a/modules/gui/qt4/components/simple_preferences.cpp
+++ b/modules/gui/qt4/components/simple_preferences.cpp
@@ -524,6 +524,7 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
CONFIG_GENERIC( "freetype-rel-fontsize", IntegerList, NULL,
fontSize );
CONFIG_GENERIC( "freetype-effect", IntegerList, NULL, effect );
+ CONFIG_GENERIC( "sub-margin", Integer, NULL, subsPosition );
END_SPREFS_CAT;
diff --git a/modules/gui/qt4/ui/sprefs_subtitles.ui b/modules/gui/qt4/ui/sprefs_subtitles.ui
index d4e3d3b..7f8fab3 100644
--- a/modules/gui/qt4/ui/sprefs_subtitles.ui
+++ b/modules/gui/qt4/ui/sprefs_subtitles.ui
@@ -5,8 +5,8 @@
<rect>
<x>0</x>
<y>0</y>
- <width>427</width>
- <height>380</height>
+ <width>434</width>
+ <height>410</height>
</rect>
</property>
<property name="windowTitle" >
@@ -148,6 +148,32 @@
</property>
</widget>
</item>
+ <item row="4" column="1" colspan="2" >
+ <widget class="QSpinBox" name="subsPosition" >
+ <property name="alignment" >
+ <set>Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter</set>
+ </property>
+ <property name="suffix" >
+ <string> px</string>
+ </property>
+ <property name="minimum" >
+ <number>-1024</number>
+ </property>
+ <property name="maximum" >
+ <number>1024</number>
+ </property>
+ </widget>
+ </item>
+ <item row="4" column="0" >
+ <widget class="QLabel" name="label_7" >
+ <property name="text" >
+ <string>_("Force subtitle position")</string>
+ </property>
+ <property name="buddy" >
+ <cstring>subsPosition</cstring>
+ </property>
+ </widget>
+ </item>
</layout>
</widget>
</item>
More information about the vlc-devel
mailing list