[vlc-commits] Qt: cosmetics

Ludovic Fauvet git at videolan.org
Mon Nov 24 19:36:57 CET 2014


vlc | branch: master | Ludovic Fauvet <etix at videolan.org> | Mon Nov 24 19:21:54 2014 +0100| [b80d2ab3bec0aa7ac847acf71be991a6b6c2254b] | committer: Ludovic Fauvet

Qt: cosmetics

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b80d2ab3bec0aa7ac847acf71be991a6b6c2254b
---

 modules/gui/qt4/main_interface.cpp |   10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/modules/gui/qt4/main_interface.cpp b/modules/gui/qt4/main_interface.cpp
index 3ae7632..4c2f761 100644
--- a/modules/gui/qt4/main_interface.cpp
+++ b/modules/gui/qt4/main_interface.cpp
@@ -368,7 +368,6 @@ void MainInterface::reloadPrefs()
 
 void MainInterface::createResumePanel( QWidget *w )
 {
-    /* Create non-modal resumePanel */
     resumePanel = new QWidget( w );
     resumePanel->hide();
     QHBoxLayout *resumePanelLayout = new QHBoxLayout( resumePanel );
@@ -383,10 +382,11 @@ void MainInterface::createResumePanel( QWidget *w )
     QToolButton *cancel = new QToolButton( resumePanel );
     cancel->setAutoRaise( true );
     cancel->setText( "X" );
-    QPushButton *ok = new QPushButton( qtr("&Continue")  );
+
+    QPushButton *ok = new QPushButton( qtr( "&Continue" )  );
 
     resumePanelLayout->addWidget( continuePixmapLabel );
-    resumePanelLayout->addWidget(continueLabel);
+    resumePanelLayout->addWidget( continueLabel );
     resumePanelLayout->addStretch( 1 );
     resumePanelLayout->addWidget( ok );
     resumePanelLayout->addWidget( cancel );
@@ -396,11 +396,9 @@ void MainInterface::createResumePanel( QWidget *w )
     resumeTimer->setInterval( 6000 );
 
     CONNECT( resumeTimer, timeout(), this, hideResumePanel() );
-
     CONNECT( cancel, clicked(), this, hideResumePanel() );
-    BUTTONACT(ok, resumePlayback() );
-
     CONNECT( THEMIM->getIM(), resumePlayback(int64_t), this, showResumePanel(int64_t) );
+    BUTTONACT( ok, resumePlayback() );
 
     w->layout()->addWidget( resumePanel );
 }



More information about the vlc-commits mailing list