]> git.sesse.net Git - vlc/commitdiff
Qt4: avoid the blinking of the unparented widgets in customize dialog.
authorJean-Baptiste Kempf <jb@videolan.org>
Sun, 29 Mar 2009 16:00:26 +0000 (18:00 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 29 Mar 2009 16:00:26 +0000 (18:00 +0200)
modules/gui/qt4/dialogs/toolbar.cpp

index 8cebadf9cadd6bf7a05821a0646be5712d0027d8..4755c294e80868bd91f4eed9088e2c6585409224 100644 (file)
@@ -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 */