[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kalziumkde4: kdeedu/kalzium/src
From: Jason Harris <kstars () 30doradus ! org>
Date: 2005-01-30 16:02:57
Message-ID: 20050130160257.BA0551D033 () office ! kde ! org
[Download RAW message or body]
CVS commit by harris:
added bool variable doFullDraw to control whether to recompute the table
pixmap. For now, it is never set to false.
CCMAIL: cniehaus@kde.org
M +16 -8 pse.cpp 1.18.4.20
M +2 -1 pse.h 1.14.4.6
--- kdeedu/kalzium/src/pse.cpp #1.18.4.19:1.18.4.20
@@ -81,4 +81,7 @@ PSE::PSE(KalziumDataObject *data, QWidge
table = new QPixmap();
+
+ //JH: For now, always do a full draw
+ doFullDraw = true;
}
@@ -218,7 +221,8 @@ void PSE::paintEvent( QPaintEvent *e )
{
QPainter p;
+
+ if ( doFullDraw ) {
p.begin( table );
p.fillRect( 0, 0, width(), height(), paletteBackgroundColor() );
-
if ( m_showSOM )
drawSOMPSE( &p );
@@ -227,4 +231,8 @@ void PSE::paintEvent( QPaintEvent *e )
p.end();
+ //JH: Uncomment when ready for this
+ // doFullDraw = false;
+ }
+
bitBlt( this, 0, 0, table );
}
--- kdeedu/kalzium/src/pse.h #1.14.4.5:1.14.4.6
@@ -153,4 +153,5 @@ class PSE : public QWidget
QPixmap *table;
+ bool doFullDraw;
public slots:
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic