Commit e7e4692f authored by Francois Cartegnie's avatar Francois Cartegnie

Qt: make help dialog use standard buttons

parent 2b1fabb2
...@@ -55,17 +55,18 @@ HelpDialog::HelpDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf ) ...@@ -55,17 +55,18 @@ HelpDialog::HelpDialog( intf_thread_t *_p_intf ) : QVLCFrame( _p_intf )
setWindowRole( "vlc-help" ); setWindowRole( "vlc-help" );
setMinimumSize( 350, 300 ); setMinimumSize( 350, 300 );
QGridLayout *layout = new QGridLayout( this ); QVBoxLayout *layout = new QVBoxLayout( this );
QTextBrowser *helpBrowser = new QTextBrowser( this ); QTextBrowser *helpBrowser = new QTextBrowser( this );
helpBrowser->setOpenExternalLinks( true ); helpBrowser->setOpenExternalLinks( true );
helpBrowser->setHtml( qtr(I_LONGHELP) ); helpBrowser->setHtml( qtr(I_LONGHELP) );
QPushButton *closeButton = new QPushButton( qtr( "&Close" ) ); QDialogButtonBox *closeButtonBox =
closeButton->setDefault( true ); new QDialogButtonBox( QDialogButtonBox::Close, Qt::Horizontal, this );
closeButtonBox->setFocus();
layout->addWidget( helpBrowser, 0, 0, 1, 0 ); layout->addWidget( helpBrowser );
layout->addWidget( closeButton, 1, 3 ); layout->addWidget( closeButtonBox );
BUTTONACT( closeButton, close() ); CONNECT( closeButtonBox, rejected(), this, close() );
readSettings( "Help", QSize( 500, 450 ) ); readSettings( "Help", QSize( 500, 450 ) );
} }
......
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