From: Francois Cartegnie Date: Mon, 5 Oct 2009 19:35:33 +0000 (+0200) Subject: Qt: uniformize ui previews, drop xml declaration related to changes made by 2779ac98f... X-Git-Tag: 1.1.0-ff~3026 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=a2a5c539b9a174667dd91a1cb5e640dea7032900;hp=5450e850793374c18e25ccc4e63660f110d61ce4;p=vlc Qt: uniformize ui previews, drop xml declaration related to changes made by 2779ac98fc116275cf490f63470f327917d40fc6 Signed-off-by: Jean-Baptiste Kempf --- diff --git a/modules/gui/qt4/components/preferences_widgets.cpp b/modules/gui/qt4/components/preferences_widgets.cpp index 20b65d43e3..7e09a0ed12 100644 --- a/modules/gui/qt4/components/preferences_widgets.cpp +++ b/modules/gui/qt4/components/preferences_widgets.cpp @@ -214,7 +214,8 @@ void InterfacePreviewWidget::setPreview( int comboid ) */ const char * pixmaps[] = { ":/prefsmenu/sample_classic", ":/prefsmenu/sample_complete", - ":/prefsmenu/sample_minimal" }; + ":/prefsmenu/sample_minimal", + ":/prefsmenu/sample_skins" }; setPixmap( QPixmap( pixmaps[ comboid ] ) ); } diff --git a/modules/gui/qt4/components/simple_preferences.cpp b/modules/gui/qt4/components/simple_preferences.cpp index 009b287eff..1ffa0ff089 100644 --- a/modules/gui/qt4/components/simple_preferences.cpp +++ b/modules/gui/qt4/components/simple_preferences.cpp @@ -546,6 +546,10 @@ SPrefsPanel::SPrefsPanel( intf_thread_t *_p_intf, QWidget *_parent, addWidget( preview, 1, 0, 1, 2 ); CONNECT( ui.displayModeBox, currentIndexChanged( int ), preview, setPreview( int ) ); + InterfacePreviewWidget *skinspreview = new InterfacePreviewWidget( this ); + skinspreview->setPreview(3); /* skins_preview resource index */ + ( (QGridLayout *) ui.LooknfeelBox->layout() )-> + addWidget( skinspreview, 7, 0, 1, 2 ); CONFIG_GENERIC( "qt-display-mode", IntegerList, ui.displayLabel, displayModeBox ); diff --git a/modules/gui/qt4/ui/sprefs_interface.ui b/modules/gui/qt4/ui/sprefs_interface.ui index 164221214a..6a4d5767e0 100644 --- a/modules/gui/qt4/ui/sprefs_interface.ui +++ b/modules/gui/qt4/ui/sprefs_interface.ui @@ -397,17 +397,6 @@ - - - - <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> -<html><head><meta name="qrichtext" content="1" /><style type="text/css"> -p, li { white-space: pre-wrap; } -</style></head><body style=" font-family:'DejaVu Sans'; font-size:9pt; font-weight:400; font-style:normal;"> -<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><img src=":/prefsmenu/sample_skins" /></p></body></html> - - - @@ -431,8 +420,6 @@ p, li { white-space: pre-wrap; } artFetcher updatesBox - - - +