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

List:       kde-commits
Subject:    kdeartwork/styles/plastik
From:       Sandro Giessl <sandro () giessl ! com>
Date:       2004-05-12 21:12:52
Message-ID: 20040512211252.3E853E33 () office ! kde ! org
[Download RAW message or body]

CVS commit by giessl: 

NoBackground for popupmenus - less flicker


  M +9 -3      plastik.cpp   1.76


--- kdeartwork/styles/plastik/plastik.cpp  #1.75:1.76
@@ -242,6 +242,7 @@ void PlastikStyle::polish(QWidget* widge
         widget->setMouseTracking(true);
         widget->installEventFilter(this);
-    }
-    else if ( !qstrcmp(widget->name(), "kde toolbar widget") ) {
+    } else if (::qt_cast<QPopupMenu*>(widget)) {
+        widget->setBackgroundMode( NoBackground );
+    } else if ( !qstrcmp(widget->name(), "kde toolbar widget") ) {
         widget->installEventFilter(this);
     }
@@ -274,6 +275,11 @@ void PlastikStyle::unPolish(QWidget* wid
         widget->setMouseTracking(false);
         widget->removeEventFilter(this);
+    } else if (::qt_cast<QPopupMenu*>(widget)) {
+        widget->setBackgroundMode( PaletteBackground );
+    } else if ( !qstrcmp(widget->name(), "kde toolbar widget") ) {
+        widget->removeEventFilter(this);
     }
-    else if ( ::qt_cast<QProgressBar*>(widget) )
+
+    if ( ::qt_cast<QProgressBar*>(widget) )
     {
         progAnimWidgets.remove(widget);


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

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