From 6889be555a7c9fe6dfe9da94ff535ea08fda2ea2 Mon Sep 17 00:00:00 2001 From: Jason Harris Date: Sun, 24 Oct 2004 07:01:29 +0000 Subject: [PATCH] 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@kde.org CCMAIL: cniehaus@kde.org svn path=/trunk/kdeedu/libkdeedu/; revision=357248 --- kdeeduplot/kplotwidget.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kdeeduplot/kplotwidget.cpp b/kdeeduplot/kplotwidget.cpp index b5ff327..b800c65 100644 --- a/kdeeduplot/kplotwidget.cpp +++ b/kdeeduplot/kplotwidget.cpp @@ -23,12 +23,14 @@ #include "kplotwidget.h" 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), ShowAxes( true ), ShowTickMarks( true ), ShowTickLabels( true ), ShowGrid( false ), XAxisLabel(), YAxisLabel() { + setBackgroundMode( QWidget::NoBackground ); + //set DataRect setLimits( x1, x2, y1, y2 ); setDefaultPadding(); -- 2.47.3