Commit 01e557cb authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt: fix the weird size of the open dialog.

parent e74e198b
...@@ -88,10 +88,10 @@ OpenDialog::OpenDialog( QWidget *parent, ...@@ -88,10 +88,10 @@ OpenDialog::OpenDialog( QWidget *parent,
setWindowTitle( qtr( "Open a Media" ) ); setWindowTitle( qtr( "Open a Media" ) );
/* Tab definition and creation */ /* Tab definition and creation */
fileOpenPanel = new FileOpenPanel( ui.Tab, p_intf ); fileOpenPanel = new FileOpenPanel( this, p_intf );
discOpenPanel = new DiscOpenPanel( ui.Tab, p_intf ); discOpenPanel = new DiscOpenPanel( this, p_intf );
netOpenPanel = new NetOpenPanel( ui.Tab, p_intf ); netOpenPanel = new NetOpenPanel( this, p_intf );
captureOpenPanel = new CaptureOpenPanel( ui.Tab, p_intf ); captureOpenPanel = new CaptureOpenPanel( this, p_intf );
/* Insert the tabs */ /* Insert the tabs */
ui.Tab->insertTab( OPEN_FILE_TAB, fileOpenPanel, qtr( "&File" ) ); ui.Tab->insertTab( OPEN_FILE_TAB, fileOpenPanel, qtr( "&File" ) );
...@@ -179,7 +179,8 @@ OpenDialog::OpenDialog( QWidget *parent, ...@@ -179,7 +179,8 @@ OpenDialog::OpenDialog( QWidget *parent,
storedMethod = ""; storedMethod = "";
newCachingMethod( "file-caching" ); 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() OpenDialog::~OpenDialog()
......
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>365</width> <width>392</width>
<height>129</height> <height>134</height>
</rect> </rect>
</property> </property>
<layout class="QGridLayout" > <layout class="QGridLayout" >
......
...@@ -6,12 +6,12 @@ ...@@ -6,12 +6,12 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>519</width> <width>571</width>
<height>282</height> <height>271</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy" > <property name="sizePolicy" >
<sizepolicy vsizetype="Minimum" hsizetype="Preferred" > <sizepolicy vsizetype="Preferred" hsizetype="MinimumExpanding" >
<horstretch>0</horstretch> <horstretch>0</horstretch>
<verstretch>0</verstretch> <verstretch>0</verstretch>
</sizepolicy> </sizepolicy>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment