Commit 031dc0b0 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4 - Don't use html tags in strings ... This breaks all the i18n thing.

parent 1d44e0c1
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#include <QFont> #include <QFont>
#include <QToolButton> #include <QToolButton>
#include <QButtonGroup> #include <QButtonGroup>
#include <QUrl>
#include "components/simple_preferences.hpp" #include "components/simple_preferences.hpp"
#include "components/preferences_widgets.hpp" #include "components/preferences_widgets.hpp"
...@@ -154,6 +155,9 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent, ...@@ -154,6 +155,9 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
title_line->setFrameShape(QFrame::HLine); title_line->setFrameShape(QFrame::HLine);
title_line->setFrameShadow(QFrame::Sunken); title_line->setFrameShadow(QFrame::Sunken);
QFont italicFont = QApplication::font( static_cast<QWidget*>(0) );
italicFont.setItalic( true );
switch( number ) switch( number )
{ {
/* Video Panel Implementation */ /* Video Panel Implementation */
...@@ -248,6 +252,8 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent, ...@@ -248,6 +252,8 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent,
/* Interface Panel */ /* Interface Panel */
START_SPREFS_CAT( Interface, "Interface settings" ); START_SPREFS_CAT( Interface, "Interface settings" );
ui.defaultLabel->setFont( italicFont );
ui.skinsLabel->setFont( italicFont );
CONFIG_GENERIC( "language", StringList, NULL, language );//FIXME CONFIG_GENERIC( "language", StringList, NULL, language );//FIXME
#if !defined( WIN32 ) && !defined( HAVE_DBUS_3 ) #if !defined( WIN32 ) && !defined( HAVE_DBUS_3 )
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
</widget> </widget>
</item> </item>
<item row="3" column="1" colspan="2" > <item row="3" column="1" colspan="2" >
<widget class="QLabel" name="label_3" > <widget class="QLabel" name="skinsLabel" >
<property name="sizePolicy" > <property name="sizePolicy" >
<sizepolicy> <sizepolicy>
<hsizetype>5</hsizetype> <hsizetype>5</hsizetype>
...@@ -52,10 +52,10 @@ ...@@ -52,10 +52,10 @@
<enum>QFrame::NoFrame</enum> <enum>QFrame::NoFrame</enum>
</property> </property>
<property name="text" > <property name="text" >
<string>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;style type="text/css"> <string>This is VLC's skinnable interface. You can download skins at http://www.videolan.org/vlc/skins.php to customize your player.</string>
p, li { white-space: pre-wrap; } </property>
&lt;/style>&lt;/head>&lt;body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal; text-decoration:none;"> <property name="textFormat" >
&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">&lt;span style=" font-style:italic;">This is VLC's skinnable interface. You can download skins at &lt;/span>&lt;a href="http://www.videolan.org/">&lt;span style=" font-style:italic; text-decoration: underline; color:#0000ff;">http://www.videolan.org/vlc/skins.php&lt;/span>&lt;/a>&lt;span style=" font-style:italic;"> to customize your player.&lt;/span>&lt;/p>&lt;/body>&lt;/html></string> <enum>Qt::PlainText</enum>
</property> </property>
<property name="alignment" > <property name="alignment" >
<set>Qt::AlignBottom|Qt::AlignJustify</set> <set>Qt::AlignBottom|Qt::AlignJustify</set>
...@@ -89,15 +89,15 @@ p, li { white-space: pre-wrap; } ...@@ -89,15 +89,15 @@ p, li { white-space: pre-wrap; }
<widget class="QLineEdit" name="fileSkin" /> <widget class="QLineEdit" name="fileSkin" />
</item> </item>
<item row="0" column="1" colspan="2" > <item row="0" column="1" colspan="2" >
<widget class="QLabel" name="label_2" > <widget class="QLabel" name="defaultLabel" >
<property name="frameShape" > <property name="frameShape" >
<enum>QFrame::NoFrame</enum> <enum>QFrame::NoFrame</enum>
</property> </property>
<property name="text" > <property name="text" >
<string>&lt;html>&lt;head>&lt;meta name="qrichtext" content="1" />&lt;style type="text/css"> <string>This is VLC's default interface, with a native look and feel.</string>
p, li { white-space: pre-wrap; } </property>
&lt;/style>&lt;/head>&lt;body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal; text-decoration:none;"> <property name="textFormat" >
&lt;p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">&lt;span style=" font-style:italic;">This is VLC's default interface, with a native look and feel.&lt;/span>&lt;/p>&lt;/body>&lt;/html></string> <enum>Qt::RichText</enum>
</property> </property>
<property name="wordWrap" > <property name="wordWrap" >
<bool>true</bool> <bool>true</bool>
......
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