]> git.sesse.net Git - vlc/commitdiff
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 7519b2e969b82a90cda161e75640b6fee39b9b83..254a17af43855a113c989308eac09d58413ec109 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 1492ed3e0f898aac1e9efc5e2b6add9877ed02e9..ad216c702345fea11feb9e8c5c7aa95bc47a7eff 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);