diff --git a/kstyle/breezestyle.cpp b/kstyle/breezestyle.cpp index bc4b704d..0646db76 100644 --- a/kstyle/breezestyle.cpp +++ b/kstyle/breezestyle.cpp @@ -247,6 +247,7 @@ namespace Breeze || qobject_cast( widget ) || qobject_cast( widget ) || qobject_cast( 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 );