[Kst] extragear/graphics/kst/kst

George Staikos staikos at kde.org
Wed Nov 23 23:34:03 CET 2005

SVN commit 482727 by staikos:

this is an ugly hack but it fixes my problem without any new repaints or other
side-effects that I can see.
The problem is, closing a popup menu with LMB over a plot causes the following
events in the following order:
- popupmenu closes
- plot gets pressEvent
- plot gets paintEvent (under menu)
- plot gets paintEvent (whole plot)
- plot gets releaseEvent

This patch allows those paint events to pass through to the plot that received
the pressEvent too, not just the other plots.

Does it help any of the other reported paint issues?

 M  +1 -2      kst2dplot.cpp  

--- trunk/extragear/graphics/kst/kst/kst2dplot.cpp #482726:482727
@@ -2192,8 +2192,7 @@
   } else {
-    if (_zoomPaused) {
-      kstdDebug() << tagName() << " ZOOM PAUSED" << endl;
+    if (_zoomPaused && dirty()) {
     // check for optimizations

More information about the Kst mailing list