[Kst] extragear/graphics/kst/kst
Andrew Walker
arwalker at sumusltd.com
Wed Dec 7 01:28:33 CET 2005
SVN commit 486179 by arwalker:
might as well draw all sides of the rectangle
M +7 -3 kstviewpicture.cpp
--- trunk/extragear/graphics/kst/kst/kstviewpicture.cpp #486178:486179
@@ -72,12 +72,16 @@
if (p.makingMask()) {
p.setRasterOp(Qt::SetROP);
}
+ QRect r(_geom);
+ r.setWidth(_geom.width() - 1);
+ r.setHeight(_geom.height() - 1);
+
// fill with X
p.setBrush(QBrush(Qt::gray, Qt::SolidPattern));
p.setPen(QPen(Qt::black, 0, Qt::SolidLine));
- p.drawRect(geometry());
- p.drawLine(geometry().topLeft(), geometry().bottomRight());
- p.drawLine(geometry().topRight(), geometry().bottomLeft());
+ p.drawRect(r);
+ p.drawLine(r.topLeft(), r.bottomRight());
+ p.drawLine(r.topRight(), r.bottomLeft());
} else {
QRect cr = contentsRect();
assert(!cr.isNull()); // Null view objects are not allowed. I want to see
More information about the Kst
mailing list