Qt4 - Add default buttons.
authorJean-Baptiste Kempf <jb@videolan.org>
Thu, 5 Apr 2007 23:37:04 +0000 (23:37 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 5 Apr 2007 23:37:04 +0000 (23:37 +0000)
modules/gui/qt4/dialogs/help.cpp
modules/gui/qt4/dialogs/mediainfo.cpp

index 7519b2e..254a17a 100644 (file)
@@ -42,6 +42,7 @@ HelpDialog::HelpDialog( intf_thread_t *_p_intf) :  QVLCFrame( _p_intf )
     QGridLayout *layout = new QGridLayout( this );
     QTextBrowser *helpBrowser = new QTextBrowser( this );
     QPushButton *closeButton = new QPushButton( qtr( "&Close" ) );
+    closeButton->setDefault( true );
 
     layout->addWidget( helpBrowser, 0, 0, 1, 0 );
     layout->addWidget( closeButton, 1, 3 );
@@ -69,6 +70,7 @@ AboutDialog::AboutDialog( intf_thread_t *_p_intf) :  QVLCFrame( _p_intf )
 
     QPushButton *closeButton = new QPushButton( qtr( "&Close" ) );
     closeButton->setSizePolicy( QSizePolicy::Minimum, QSizePolicy::Minimum );
+    closeButton->setDefault( true );
 
     QLabel *introduction = new QLabel( qtr( "Infos about VLC media player" ) );
 
index 1492ed3..ad216c7 100644 (file)
@@ -48,6 +48,7 @@ MediaInfoDialog::MediaInfoDialog( intf_thread_t *_p_intf, bool _mainInput ) :
     QGridLayout *layout = new QGridLayout(this);
     IT = new InfoTab( this, p_intf, true ) ;
     QPushButton *closeButton = new QPushButton(qtr("&Close"));
+    closeButton->setDefault( true );
 
     layout->addWidget(IT,0,0,1,3);
     layout->addWidget(closeButton,1,2);