Commit 1a5a3ba2 authored by Ludovic Fauvet's avatar Ludovic Fauvet Committed by Jean-Baptiste Kempf

Qt: cosmetics

(cherry picked from commit b80d2ab3bec0aa7ac847acf71be991a6b6c2254b)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 52aefe95
...@@ -370,7 +370,6 @@ void MainInterface::reloadPrefs() ...@@ -370,7 +370,6 @@ void MainInterface::reloadPrefs()
void MainInterface::createResumePanel( QWidget *w ) void MainInterface::createResumePanel( QWidget *w )
{ {
/* Create non-modal resumePanel */
resumePanel = new QWidget( w ); resumePanel = new QWidget( w );
resumePanel->hide(); resumePanel->hide();
QHBoxLayout *resumePanelLayout = new QHBoxLayout( resumePanel ); QHBoxLayout *resumePanelLayout = new QHBoxLayout( resumePanel );
...@@ -385,10 +384,11 @@ void MainInterface::createResumePanel( QWidget *w ) ...@@ -385,10 +384,11 @@ void MainInterface::createResumePanel( QWidget *w )
QToolButton *cancel = new QToolButton( resumePanel ); QToolButton *cancel = new QToolButton( resumePanel );
cancel->setAutoRaise( true ); cancel->setAutoRaise( true );
cancel->setText( "X" ); cancel->setText( "X" );
QPushButton *ok = new QPushButton( qtr("&Continue") );
QPushButton *ok = new QPushButton( qtr( "&Continue" ) );
resumePanelLayout->addWidget( continuePixmapLabel ); resumePanelLayout->addWidget( continuePixmapLabel );
resumePanelLayout->addWidget(continueLabel); resumePanelLayout->addWidget( continueLabel );
resumePanelLayout->addStretch( 1 ); resumePanelLayout->addStretch( 1 );
resumePanelLayout->addWidget( ok ); resumePanelLayout->addWidget( ok );
resumePanelLayout->addWidget( cancel ); resumePanelLayout->addWidget( cancel );
...@@ -398,11 +398,9 @@ void MainInterface::createResumePanel( QWidget *w ) ...@@ -398,11 +398,9 @@ void MainInterface::createResumePanel( QWidget *w )
resumeTimer->setInterval( 6000 ); resumeTimer->setInterval( 6000 );
CONNECT( resumeTimer, timeout(), this, hideResumePanel() ); CONNECT( resumeTimer, timeout(), this, hideResumePanel() );
CONNECT( cancel, clicked(), this, hideResumePanel() ); CONNECT( cancel, clicked(), this, hideResumePanel() );
BUTTONACT(ok, resumePlayback() );
CONNECT( THEMIM->getIM(), resumePlayback(int64_t), this, showResumePanel(int64_t) ); CONNECT( THEMIM->getIM(), resumePlayback(int64_t), this, showResumePanel(int64_t) );
BUTTONACT( ok, resumePlayback() );
w->layout()->addWidget( resumePanel ); w->layout()->addWidget( resumePanel );
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment