From kde-commits Sat Jan 22 17:49:47 2011 From: Marco Martin Date: Sat, 22 Jan 2011 17:49:47 +0000 To: kde-commits Subject: KDE/kdelibs/plasma/private Message-Id: <20110122174947.3CEA2AC8B8 () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=129571863404170 SVN commit 1216322 by mart: if the theme wants to use the system style, disable completely any focusindicator M +9 -1 focusindicator.cpp --- trunk/KDE/kdelibs/plasma/private/focusindicator.cpp #1216321:1216322 @@ -121,7 +121,8 @@ bool FocusIndicator::eventFilter(QObject *watched, QEvent *event) { - if (static_cast(watched) != m_parent || !m_parent) { + if (Theme::defaultTheme()->useNativeWidgetStyle() || + static_cast(watched) != m_parent || !m_parent ) { return false; } @@ -274,6 +275,13 @@ void FocusIndicator::syncGeometry() { + if (Theme::defaultTheme()->useNativeWidgetStyle()) { + hide(); + return; + } else if (!isVisible()) { + show(); + } + QRectF geom; if (!m_customGeometry.isEmpty()) { geom = m_customGeometry;