[Kstars-devel] kdeedu/libkdeedu/kdeeduplot

Jason Harris kstars at 30doradus.org
Sun Oct 24 09:01:29 CEST 2004


CVS commit by harris: 

Eliminating flicker in KPlotWidget.  Added "WNoAutoErase" flag to 
QWidget ctor.  It works well!

(note: I first tried to add "setBackgroundMode( QWidget::NoBackground )" 
to the KPlotWidget ctor, but this didn't stop the flicker.  This is 
strange, because that's how I got rid of the flicker in the SkyMap 
widget.  SkyMap doesn't use WNoAutoErase, yet it is flicker-free.  Odd.)

CCMAIL: kstars-devel at kde.org
CCMAIL: cniehaus at kde.org


  M +3 -1      kplotwidget.cpp   1.9


--- kdeedu/libkdeedu/kdeeduplot/kplotwidget.cpp  #1.8:1.9
@@ -24,5 +24,5 @@
 
 KPlotWidget::KPlotWidget( double x1, double x2, double y1, double y2, QWidget *parent, const char* name )
- : QWidget( parent, name ),
+ : QWidget( parent, name, WNoAutoErase ),
    dXtick(0.0), dYtick(0.0),
    nmajX(0), nminX(0), nmajY(0), nminY(0),
@@ -30,4 +30,6 @@ KPlotWidget::KPlotWidget( double x1, dou
    XAxisLabel(), YAxisLabel() {
 
+        setBackgroundMode( QWidget::NoBackground );
+
         //set DataRect
         setLimits( x1, x2, y1, y2 );




More information about the Kstars-devel mailing list