Qt4 - Don't use things that can change from one version to another one of Qt.
authorJean-Baptiste Kempf <jb@videolan.org>
Tue, 9 Oct 2007 02:09:22 +0000 (02:09 +0000)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 9 Oct 2007 02:09:22 +0000 (02:09 +0000)
modules/gui/qt4/dialogs/open.cpp

index 1f52e34..2cd0a89 100644 (file)
@@ -73,8 +73,7 @@ OpenDialog::OpenDialog( QWidget *parent, intf_thread_t *_p_intf, bool modal,
     ui.slaveBrowseButton->hide();
 
     /* Buttons Creation */
-    QSizePolicy buttonSizePolicy( static_cast<QSizePolicy::Policy>(7),
-                                  static_cast<QSizePolicy::Policy>(1) );
+    QSizePolicy buttonSizePolicy( QSizePolicy::Expanding, QSizePolicy::GrowFlag );
     buttonSizePolicy.setHorizontalStretch(0);
     buttonSizePolicy.setVerticalStretch(0);