Added Hover effect on KTextEditor::View

Do not draw Hover and Focus effect for non-editable frames
wilder-pre-rebase
Hugo Pereira Da Costa 12 years ago
parent 5a88de5ab4
commit 38288c7e40
  1. 3
      kstyle/breezestyle.cpp

@ -247,6 +247,7 @@ namespace Breeze
|| qobject_cast<QTabBar*>( widget )
|| qobject_cast<QTextEdit*>( widget )
|| qobject_cast<QToolButton*>( widget )
|| widget->inherits( "KTextEditor::View" )
)
{ widget->setAttribute( Qt::WA_Hover ); }
@ -2596,7 +2597,7 @@ namespace Breeze
const bool enabled( state & State_Enabled );
const bool mouseOver( enabled && isInputWidget && ( state & State_MouseOver ) );
const bool hasFocus( enabled && ( state & State_HasFocus ) );
const bool hasFocus( enabled && isInputWidget && ( state & State_HasFocus ) );
// focus takes precedence over mouse over
_animations->widgetStateEngine().updateState( widget, AnimationFocus, hasFocus );

Loading…
Cancel
Save