Qt4 - Use same type of button in order to not kill the eyes, if you run Plastique...
authorJean-Baptiste Kempf <jb@videolan.org>
Sat, 19 Jan 2008 04:01:55 +0000 (04:01 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 19 Jan 2008 04:01:55 +0000 (04:01 +0000)
modules/gui/qt4/dialogs/open.cpp
modules/gui/qt4/dialogs/open.hpp

index 4f4f762..1bda5aa 100644 (file)
@@ -93,7 +93,7 @@ OpenDialog::OpenDialog( QWidget *parent,
     buttonSizePolicy.setVerticalStretch( 0 );
 
     /* Play Button */
-    playButton = new QToolButton( this );
+    playButton = new QToolButton;
     playButton->setText( qtr( "&Play" ) );
     playButton->setSizePolicy( buttonSizePolicy );
     playButton->setMinimumSize( QSize( 90, 0 ) );
@@ -101,12 +101,12 @@ OpenDialog::OpenDialog( QWidget *parent,
     playButton->setToolButtonStyle( Qt::ToolButtonTextOnly );
 
     /* Cancel Button */
-    cancelButton = new QPushButton();
+    cancelButton = new QToolButton;
     cancelButton->setText( qtr( "&Cancel" ) );
     cancelButton->setSizePolicy( buttonSizePolicy );
 
     /* Select Button */
-    selectButton = new QPushButton;
+    selectButton = new QToolButton;
     selectButton->setText( qtr( "Select" ) );
     selectButton->setSizePolicy( buttonSizePolicy );
 
index fa9e46f..f603028 100644 (file)
@@ -79,7 +79,7 @@ private:
     int i_action_flag;
     QStringList SeparateEntries( QString );
 
-    QPushButton *cancelButton, *selectButton;
+    QToolButton *cancelButton, *selectButton;
     QToolButton *playButton;
 
     void finish( bool );