Fix visual glitches in rendering

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/1/head
Slávek Banko 9 years ago
parent fad77b5609
commit 1a83a35621

@ -374,7 +374,7 @@ void MandrivaStyle::polish(const TQStyleControlElementData &ceData, ControlEleme
|| widget->inherits( "TQCheckBox" )
|| widget->inherits("TQSplitterHandle") )
{
widget->installEventFilter(this);
installObjectEventHandler(ceData, elementFlags, ptr, this);
if (widget->inherits( "TQScrollBar" ) || widget->inherits( "TQComboBox" ))
widget->setMouseTracking( true );
}
@ -385,7 +385,7 @@ void MandrivaStyle::polish(const TQStyleControlElementData &ceData, ControlEleme
}
else if (widget->inherits("TQPushButton") )
{
widget->installEventFilter(this);
installObjectEventHandler(ceData, elementFlags, ptr, this);
widget->setBackgroundMode( TQWidget::PaletteBackground );
}
else if ( widget->inherits( "TDEToolBarSeparator" ) || widget->inherits( "TQToolBarSeparator" ) )
@ -394,7 +394,7 @@ void MandrivaStyle::polish(const TQStyleControlElementData &ceData, ControlEleme
}
else if (widget->inherits("TQToolBarExtensionWidget"))
{
widget->installEventFilter(this);
installObjectEventHandler(ceData, elementFlags, ptr, this);
}
else if ( widget->parentWidget() &&
( ( widget->inherits( "TQListBox" ) && widget->parentWidget()->inherits( "TQComboBox" ) )
@ -403,12 +403,12 @@ void MandrivaStyle::polish(const TQStyleControlElementData &ceData, ControlEleme
TQListBox* listbox = (TQListBox*) widget;
listbox->setLineWidth( 1 );
listbox->setBackgroundMode( NoBackground );
widget->installEventFilter( this );
installObjectEventHandler(ceData, elementFlags, ptr, this);
}
else if ( !qstrcmp( widget->name(), kdeToolbarWidget) )
{
widget->setBackgroundMode( NoBackground ); // We paint the whole background.
widget->installEventFilter(this);
installObjectEventHandler(ceData, elementFlags, ptr, this);
}
}
@ -431,7 +431,7 @@ void MandrivaStyle::unPolish(const TQStyleControlElementData &ceData, ControlEle
|| widget->inherits( "TQCheckBox" )
|| widget->inherits("TQSplitterHandle"))
{
widget->removeEventFilter(this);
removeObjectEventHandler(ceData, elementFlags, ptr, this);
}
else if ( widget->inherits("TQMenuBar")
|| widget->inherits("TQPopupMenu"))
@ -440,11 +440,11 @@ void MandrivaStyle::unPolish(const TQStyleControlElementData &ceData, ControlEle
}
else if ( widget->inherits("TQPushButton") )
{
widget->removeEventFilter(this);
removeObjectEventHandler(ceData, elementFlags, ptr, this);
}
else if (widget->inherits("TQToolBarExtensionWidget"))
{
widget->removeEventFilter(this);
removeObjectEventHandler(ceData, elementFlags, ptr, this);
}
else if ( widget->parentWidget() &&
( ( widget->inherits( "TQListBox" ) && widget->parentWidget()->inherits( "TQComboBox" ) )
@ -453,7 +453,7 @@ void MandrivaStyle::unPolish(const TQStyleControlElementData &ceData, ControlEle
TQListBox* listbox = (TQListBox*) widget;
listbox->setLineWidth( 1 );
listbox->setBackgroundMode( PaletteBackground );
widget->removeEventFilter( this );
removeObjectEventHandler(ceData, elementFlags, ptr, this);
widget->clearMask();
}
//For toolbar internal separators, return to button, too (can't use tqt_cast here since don't have access to the class)
@ -464,7 +464,7 @@ void MandrivaStyle::unPolish(const TQStyleControlElementData &ceData, ControlEle
else if ( !qstrcmp( widget->name(), kdeToolbarWidget) )
{
widget->setBackgroundMode( PaletteBackground );
widget->removeEventFilter(this);
removeObjectEventHandler(ceData, elementFlags, ptr, this);
}
}

Loading…
Cancel
Save