]> git.sesse.net Git - vlc/commitdiff
Qt: fix the weird size of the open dialog.
authorJean-Baptiste Kempf <jb@videolan.org>
Sun, 22 Feb 2009 23:38:21 +0000 (00:38 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 22 Feb 2009 23:38:21 +0000 (00:38 +0100)
modules/gui/qt4/dialogs/open.cpp
modules/gui/qt4/ui/open_capture.ui
modules/gui/qt4/ui/open_file.ui

index 89cad1feed1be033da920b56ac5a9e98eae13f41..003700a3884fdb6ee8fe541448be9f9124dd5b3e 100644 (file)
@@ -88,10 +88,10 @@ OpenDialog::OpenDialog( QWidget *parent,
     setWindowTitle( qtr( "Open a Media" ) );
 
     /* Tab definition and creation */
-    fileOpenPanel    = new FileOpenPanel( ui.Tab, p_intf );
-    discOpenPanel    = new DiscOpenPanel( ui.Tab, p_intf );
-    netOpenPanel     = new NetOpenPanel( ui.Tab, p_intf );
-    captureOpenPanel = new CaptureOpenPanel( ui.Tab, p_intf );
+    fileOpenPanel    = new FileOpenPanel( this, p_intf );
+    discOpenPanel    = new DiscOpenPanel( this, p_intf );
+    netOpenPanel     = new NetOpenPanel( this, p_intf );
+    captureOpenPanel = new CaptureOpenPanel( this, p_intf );
 
     /* Insert the tabs */
     ui.Tab->insertTab( OPEN_FILE_TAB, fileOpenPanel, qtr( "&File" ) );
@@ -179,7 +179,8 @@ OpenDialog::OpenDialog( QWidget *parent,
     storedMethod = "";
     newCachingMethod( "file-caching" );
 
-    resize( getSettings()->value( "opendialog-size", QSize( 400, 490 ) ).toSize() );
+    setMinimumSize( sizeHint() );
+    resize( getSettings()->value( "opendialog-size", QSize( 500, 490 ) ).toSize() );
 }
 
 OpenDialog::~OpenDialog()
index 37b433e16e28b19e4cd4445544c03f57279ac967..a8a0a372682456f127e75a074f0748f254151a32 100644 (file)
@@ -6,8 +6,8 @@
    <rect>
     <x>0</x>
     <y>0</y>
-    <width>365</width>
-    <height>129</height>
+    <width>392</width>
+    <height>134</height>
    </rect>
   </property>
   <layout class="QGridLayout" >
index c7faba3a9b1cd23261c15ac90a1b67fe67f9af64..769e980fd02029dd5c79bd3d07e1170b85d59909 100644 (file)
@@ -6,12 +6,12 @@
    <rect>
     <x>0</x>
     <y>0</y>
-    <width>519</width>
-    <height>282</height>
+    <width>571</width>
+    <height>271</height>
    </rect>
   </property>
   <property name="sizePolicy" >
-   <sizepolicy vsizetype="Minimum" hsizetype="Preferred" >
+   <sizepolicy vsizetype="Preferred" hsizetype="MinimumExpanding" >
     <horstretch>0</horstretch>
     <verstretch>0</verstretch>
    </sizepolicy>