--- a/tools/templates/pixlabel.cpp Tue Jan 23 21:24:18 2007 +0000
+++ b/tools/templates/pixlabel.cpp Tue Jan 23 22:48:08 2007 +0000
@@ -15,11 +15,17 @@
p.fillRect(QRect(0, 0, 1024, 512), QBrush(Qt::black));
- p.setPen(QPen(Qt::white));
- p.drawRects(rects.toVector());
-
if (rects.size())
{
+ p.setPen(QPen(Qt::lightGray));
+ QVector<QPoint> centers;
+ for(QList<QRect>::const_iterator it = rects.begin(); it != rects.end(); ++it)
+ centers.push_back((*it).center());
+ p.drawPolyline(QPolygon(centers));
+
+ p.setPen(QPen(Qt::white));
+ p.drawRects(rects.toVector());
+
p.setPen(QPen(Qt::yellow));
p.drawRect(rects.last());
}