[vlc-commits] Qt: add an icon in front of the resume panel
Ludovic Fauvet
git at videolan.org
Mon Nov 24 18:15:06 CET 2014
vlc | branch: master | Ludovic Fauvet <etix at videolan.org> | Mon Nov 24 17:32:05 2014 +0100| [3f1f34dbd7085593d56c187e915fab3161e2acbe] | committer: Ludovic Fauvet
Qt: add an icon in front of the resume panel
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3f1f34dbd7085593d56c187e915fab3161e2acbe
---
modules/gui/qt4/main_interface.cpp | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/modules/gui/qt4/main_interface.cpp b/modules/gui/qt4/main_interface.cpp
index 28f7bf5..6ddd627 100644
--- a/modules/gui/qt4/main_interface.cpp
+++ b/modules/gui/qt4/main_interface.cpp
@@ -374,12 +374,18 @@ void MainInterface::createContinueDialog( QWidget *w )
QHBoxLayout *continueDialogLayout = new QHBoxLayout( continueDialog );
continueDialogLayout->setSpacing( 0 ); continueDialogLayout->setMargin( 0 );
+ QLabel *continuePixmapLabel = new QLabel();
+ continuePixmapLabel->setPixmap( QPixmap( ":/menu/help" ) );
+ continuePixmapLabel->setContentsMargins( 5, 0, 5, 0 );
+
QLabel *continueLabel = new QLabel( qtr( "Do you want to restart the playback where left off?") );
+
QToolButton *cancel = new QToolButton( continueDialog );
cancel->setAutoRaise( true );
cancel->setText( "X" );
QPushButton *ok = new QPushButton( qtr("&Continue") );
+ continueDialogLayout->addWidget( continuePixmapLabel );
continueDialogLayout->addWidget(continueLabel);
continueDialogLayout->addStretch( 1 );
continueDialogLayout->addWidget( ok );
More information about the vlc-commits
mailing list