[Kst] extragear/graphics/kst/kst

Andrew Walker arwalker at sumusltd.com
Sat May 21 02:55:39 CEST 2005


SVN commit 416282 by arwalker:

Draw cross pattern when plot is too small so the user knows it is there at least.

 M  +4 -0      trunk/extragear/graphics/kst/kst/kst2dplot.cpp  


--- trunk/extragear/graphics/kst/kst/kst2dplot.cpp #416281:416282
@@ -2396,6 +2396,10 @@
     }
     kdDebug() << "Plot Total: " << bt[i_bt-1] << "ms" << endl;
 #endif
+  } else {
+    // if the plot is too small to draw then denote this with a cross pattern
+    p.fillRect(RelWinRegion, QBrush(foregroundColor(), Qt::DiagCrossPattern)); 
+    p.drawRect(RelWinRegion ); 
   }
 
   p.setWindow(old_window);


More information about the Kst mailing list