]> git.sesse.net Git - vlc/commitdiff
Stack the extended tool by default just under the player, to mimic 0.8.6 behaviour.
authorJean-Baptiste Kempf <jb@videolan.org>
Mon, 4 Aug 2008 19:28:04 +0000 (12:28 -0700)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 4 Aug 2008 19:54:50 +0000 (12:54 -0700)
modules/gui/qt4/dialogs/extended.cpp

index b9cb9548129d23e1ac3606c7b6011077727e4014..c02dcc1181aa0e12c35f4b82085f8113e8c6663b 100644 (file)
@@ -29,6 +29,8 @@
 #include "dialogs_provider.hpp"
 #include "components/extended_panels.hpp"
 
+
+#include "main_interface.hpp"
 #include <QTabWidget>
 #include <QGridLayout>
 
@@ -86,7 +88,14 @@ ExtendedDialog::ExtendedDialog( intf_thread_t *_p_intf ): QVLCFrame( _p_intf )
     layout->addWidget( closeButton, 1, 4, 1, 1 );
     CONNECT( closeButton, clicked(), this, close() );
 
-    readSettings( "EPanel", QSize( 400, 280 ), QPoint( 450, 0 ) );
+    QPoint startPoint( 450, 0 );
+    MainInterface *p_mi = p_intf->p_sys->p_mi;
+    if( p_mi )
+    {
+        startPoint.setX( p_mi->x() );
+        startPoint.setY( p_mi->y() + p_mi->frameGeometry().height() );
+    }
+    readSettings( "EPanel", QSize( 400, 280 ), startPoint );
 }
 
 ExtendedDialog::~ExtendedDialog()