[Kst] branches/work/kst/portto4/kst/src/libkstapp
Mike Fenton
mike at staikos.net
Wed Feb 18 17:19:12 CET 2009
SVN commit 927941 by fenton:
Fix continuous painting of plotitems.
M +2 -9 plotitem.cpp
--- branches/work/kst/portto4/kst/src/libkstapp/plotitem.cpp #927940:927941
@@ -548,15 +548,7 @@
void PlotItem::paint(QPainter *painter) {
- qDebug() << "PlotItem::paint called";
painter->save();
- if (parentViewItem() && isInSharedAxisBox()) {
- setBrush(Qt::transparent);
- } else {
- setBrush(Qt::white);
- }
-
- painter->save();
painter->setPen(Qt::NoPen);
painter->drawRect(rect());
painter->restore();
@@ -594,7 +586,6 @@
paintPlotMarkers(painter);
painter->restore();
- painter->restore();
}
@@ -1052,12 +1043,14 @@
setFlags(0);
setParent(parent);
setTiedZoom(true);
+ 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