[vlc-devel] commit: Qt4: avoid the blinking of the unparented widgets in customize dialog. ( Jean-Baptiste Kempf )
git version control
git at videolan.org
Sun Mar 29 18:03:55 CEST 2009
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun Mar 29 18:00:26 2009 +0200| [c54636dbd4783446fcd0fe871c7c323ea781f109] | committer: Jean-Baptiste Kempf
Qt4: avoid the blinking of the unparented widgets in customize dialog.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c54636dbd4783446fcd0fe871c7c323ea781f109
---
modules/gui/qt4/dialogs/toolbar.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules/gui/qt4/dialogs/toolbar.cpp b/modules/gui/qt4/dialogs/toolbar.cpp
index 8cebadf..4755c29 100644
--- a/modules/gui/qt4/dialogs/toolbar.cpp
+++ b/modules/gui/qt4/dialogs/toolbar.cpp
@@ -502,7 +502,7 @@ void DroppingController::createAndAddWidget( QBoxLayout *controlLayout,
/* Special case for SPACERS, who aren't QWidgets */
if( i_type == WIDGET_SPACER || i_type == WIDGET_SPACER_EXTEND )
{
- QLabel *label = new QLabel;
+ QLabel *label = new QLabel( this );
label->setPixmap( QPixmap( ":/space" ) );
if( i_type == WIDGET_SPACER_EXTEND )
{
@@ -530,6 +530,7 @@ void DroppingController::createAndAddWidget( QBoxLayout *controlLayout,
if( !widg ) return;
/* Install the Event Filter in order to catch the drag */
+ widg->setParent( this );
widg->installEventFilter( this );
/* We are in a complex widget, we need to stop events on children too */
More information about the vlc-devel
mailing list