[vlc-commits] Qt: add an icon in front of the resume panel
Ludovic Fauvet
git at videolan.org
Wed Dec 17 17:54:52 CET 2014
vlc/vlc-2.2 | branch: master | Ludovic Fauvet <etix at videolan.org> | Mon Nov 24 17:32:05 2014 +0100| [114100ad6e3840a7650471b5f67bf6bd1719abfb] | committer: Jean-Baptiste Kempf
Qt: add an icon in front of the resume panel
(cherry picked from commit 3f1f34dbd7085593d56c187e915fab3161e2acbe)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=114100ad6e3840a7650471b5f67bf6bd1719abfb
---
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 c39dac8..c41d9e8 100644
--- a/modules/gui/qt4/main_interface.cpp
+++ b/modules/gui/qt4/main_interface.cpp
@@ -376,12 +376,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