[vlc-devel] commit: Stack the extended tool by default just under the player, to mimic 0.8.6 behaviour. (Jean-Baptiste Kempf )
git version control
git at videolan.org
Mon Aug 4 21:52:41 CEST 2008
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Aug 4 12:28:04 2008 -0700| [2aba5eebae25fda145279416af95ba92160e1718] | committer: Jean-Baptiste Kempf
Stack the extended tool by default just under the player, to mimic 0.8.6 behaviour.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2aba5eebae25fda145279416af95ba92160e1718
---
modules/gui/qt4/dialogs/extended.cpp | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/modules/gui/qt4/dialogs/extended.cpp b/modules/gui/qt4/dialogs/extended.cpp
index b9cb954..c02dcc1 100644
--- a/modules/gui/qt4/dialogs/extended.cpp
+++ b/modules/gui/qt4/dialogs/extended.cpp
@@ -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()
More information about the vlc-devel
mailing list