[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdelibs/plasma/private
From:       Marco Martin <notmart () gmail ! com>
Date:       2011-01-22 17:49:47
Message-ID: 20110122174947.3CEA2AC8B8 () svn ! kde ! org
[Download RAW message or body]

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<QGraphicsWidget *>(watched) != m_parent || !m_parent) {
+    if (Theme::defaultTheme()->useNativeWidgetStyle() ||
+        static_cast<QGraphicsWidget *>(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;
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic