Commit c54636db authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Qt4: avoid the blinking of the unparented widgets in customize dialog.

parent 4792f4d8
...@@ -502,7 +502,7 @@ void DroppingController::createAndAddWidget( QBoxLayout *controlLayout, ...@@ -502,7 +502,7 @@ void DroppingController::createAndAddWidget( QBoxLayout *controlLayout,
/* Special case for SPACERS, who aren't QWidgets */ /* Special case for SPACERS, who aren't QWidgets */
if( i_type == WIDGET_SPACER || i_type == WIDGET_SPACER_EXTEND ) if( i_type == WIDGET_SPACER || i_type == WIDGET_SPACER_EXTEND )
{ {
QLabel *label = new QLabel; QLabel *label = new QLabel( this );
label->setPixmap( QPixmap( ":/space" ) ); label->setPixmap( QPixmap( ":/space" ) );
if( i_type == WIDGET_SPACER_EXTEND ) if( i_type == WIDGET_SPACER_EXTEND )
{ {
...@@ -530,6 +530,7 @@ void DroppingController::createAndAddWidget( QBoxLayout *controlLayout, ...@@ -530,6 +530,7 @@ void DroppingController::createAndAddWidget( QBoxLayout *controlLayout,
if( !widg ) return; if( !widg ) return;
/* Install the Event Filter in order to catch the drag */ /* Install the Event Filter in order to catch the drag */
widg->setParent( this );
widg->installEventFilter( this ); widg->installEventFilter( this );
/* We are in a complex widget, we need to stop events on children too */ /* We are in a complex widget, we need to stop events on children too */
......
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