mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 18:32:50 +00:00
kstyles: restore some code that should not have been removed during the oxygen cleanup
This commit is contained in:
parent
2ae081750c
commit
c1c3de6949
1 changed files with 17 additions and 0 deletions
|
@ -402,6 +402,23 @@ namespace Oxygen
|
|||
bool changed( false );
|
||||
if( _focus != focus ) { _focus = focus; changed |= true; }
|
||||
if( _hover != hover ) { _hover = hover; changed |= !_focus; }
|
||||
|
||||
if( changed )
|
||||
{
|
||||
|
||||
if( QWidget* viewport = this->viewport() ) {
|
||||
|
||||
// need to disable viewport updates to avoid some redundant painting
|
||||
// besides it fixes one visual glitch (from Qt) in QTableViews
|
||||
viewport->setUpdatesEnabled( false );
|
||||
update() ;
|
||||
viewport->setUpdatesEnabled( true );
|
||||
|
||||
} else {
|
||||
update();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
//____________________________________________________________________________________
|
||||
|
|
Loading…
Add table
Reference in a new issue