From 031dc0b0f7a2c162e396ed676bb1887a1249e449 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Kempf Date: Wed, 4 Apr 2007 23:10:28 +0000 Subject: [PATCH] Qt4 - Don't use html tags in strings ... This breaks all the i18n thing. --- .../gui/qt4/components/simple_preferences.cpp | 8 +++++++- modules/gui/qt4/ui/sprefs_interface.ui | 20 +++++++++---------- 2 files changed, 17 insertions(+), 11 deletions(-) diff --git a/modules/gui/qt4/components/simple_preferences.cpp b/modules/gui/qt4/components/simple_preferences.cpp index 9e034b43c6..5e7944846a 100644 --- a/modules/gui/qt4/components/simple_preferences.cpp +++ b/modules/gui/qt4/components/simple_preferences.cpp @@ -27,6 +27,7 @@ #include #include #include +#include #include "components/simple_preferences.hpp" #include "components/preferences_widgets.hpp" @@ -154,6 +155,9 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent, title_line->setFrameShape(QFrame::HLine); title_line->setFrameShadow(QFrame::Sunken); + QFont italicFont = QApplication::font( static_cast(0) ); + italicFont.setItalic( true ); + switch( number ) { /* Video Panel Implementation */ @@ -248,7 +252,9 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent, /* Interface Panel */ START_SPREFS_CAT( Interface, "Interface settings" ); - + ui.defaultLabel->setFont( italicFont ); + ui.skinsLabel->setFont( italicFont ); + CONFIG_GENERIC( "language", StringList, NULL, language );//FIXME #if !defined( WIN32 ) && !defined( HAVE_DBUS_3 ) ui.OneInterfaceBox->hide(); diff --git a/modules/gui/qt4/ui/sprefs_interface.ui b/modules/gui/qt4/ui/sprefs_interface.ui index 5a77afb3cc..f3648f66ae 100644 --- a/modules/gui/qt4/ui/sprefs_interface.ui +++ b/modules/gui/qt4/ui/sprefs_interface.ui @@ -39,7 +39,7 @@ - + 5 @@ -52,10 +52,10 @@ QFrame::NoFrame - <html><head><meta name="qrichtext" content="1" /><style type="text/css"> -p, li { white-space: pre-wrap; } -</style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal; text-decoration:none;"> -<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-style:italic;">This is VLC's skinnable interface. You can download skins at </span><a href="http://www.videolan.org/"><span style=" font-style:italic; text-decoration: underline; color:#0000ff;">http://www.videolan.org/vlc/skins.php</span></a><span style=" font-style:italic;"> to customize your player.</span></p></body></html> + This is VLC's skinnable interface. You can download skins at http://www.videolan.org/vlc/skins.php to customize your player. + + + Qt::PlainText Qt::AlignBottom|Qt::AlignJustify @@ -89,15 +89,15 @@ p, li { white-space: pre-wrap; } - + QFrame::NoFrame - <html><head><meta name="qrichtext" content="1" /><style type="text/css"> -p, li { white-space: pre-wrap; } -</style></head><body style=" font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal; text-decoration:none;"> -<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-style:italic;">This is VLC's default interface, with a native look and feel.</span></p></body></html> + This is VLC's default interface, with a native look and feel. + + + Qt::RichText true -- 2.39.2