[Kst] branches/work/kst/portto4/kst/src/libkstapp
Mike Fenton
mike at staikos.net
Mon Jan 12 21:54:53 CET 2009
SVN commit 910226 by fenton:
Fix drawing loop in PlotItem.
M +2 -7 plotitem.cpp
--- branches/work/kst/portto4/kst/src/libkstapp/plotitem.cpp #910225:910226
@@ -509,13 +509,6 @@
void PlotItem::paint(QPainter *painter) {
- qDebug() << "Plot Item Paint";
- if (isInSharedAxisBox()) {
- setBrush(Qt::transparent);
- } else {
- setBrush(Qt::white);
- }
-
painter->save();
painter->setPen(Qt::NoPen);
painter->drawRect(rect());
@@ -998,12 +991,14 @@
setAllowedGripModes(0);
setFlags(0);
setParent(parent);
+ setBrush(Qt::transparent);
} else {
setInSharedAxisBox(false);
setTiedZoom(false);
setAllowedGripModes(Move | Resize | Rotate);
setFlags(ItemIsMovable | ItemIsSelectable | ItemIsFocusable);
setParent(0);
+ setBrush(Qt::white);
}
}
More information about the Kst
mailing list