Mercurial > hg > svgui
comparison layer/Layer.cpp @ 270:61a704654497
...
author | Chris Cannam |
---|---|
date | Tue, 26 Jun 2007 14:57:29 +0000 |
parents | 7b58c5e91f20 |
children | 87e4c880b4c8 |
comparison
equal
deleted
inserted
replaced
269:7b58c5e91f20 | 270:61a704654497 |
---|---|
255 | 255 |
256 void | 256 void |
257 Layer::paintMeasurementRects(View *v, QPainter &paint) const | 257 Layer::paintMeasurementRects(View *v, QPainter &paint) const |
258 { | 258 { |
259 if (m_haveDraggingRect) { | 259 if (m_haveDraggingRect) { |
260 paintMeasurementRect(v, paint, m_draggingRect); | 260 paintMeasurementRect(v, paint, m_draggingRect, true); |
261 } | 261 } |
262 | 262 |
263 for (MeasureRectSet::const_iterator i = m_measureRects.begin(); | 263 for (MeasureRectSet::const_iterator i = m_measureRects.begin(); |
264 i != m_measureRects.end(); ++i) { | 264 i != m_measureRects.end(); ++i) { |
265 paintMeasurementRect(v, paint, *i); | 265 paintMeasurementRect(v, paint, *i, true); |
266 } | 266 } |
267 } | 267 } |
268 | 268 |
269 void | 269 void |
270 Layer::paintMeasurementRect(View *v, QPainter &paint, const MeasureRect &r) const | 270 Layer::paintMeasurementRect(View *v, QPainter &paint, |
271 const MeasureRect &r, bool focus) const | |
271 { | 272 { |
272 if (r.haveFrames) { | 273 if (r.haveFrames) { |
273 | 274 |
274 int x0 = -1; | 275 int x0 = -1; |
275 int x1 = v->width() + 1; | 276 int x1 = v->width() + 1; |
285 x1 - x0, r.pixrect.height()); | 286 x1 - x0, r.pixrect.height()); |
286 | 287 |
287 r.pixrect = pr; | 288 r.pixrect = pr; |
288 } | 289 } |
289 | 290 |
290 v->drawMeasurementRect(paint, this, r.pixrect); | 291 v->drawMeasurementRect(paint, this, r.pixrect, focus); |
291 } | 292 } |
292 | 293 |
293 QString | 294 QString |
294 Layer::toXmlString(QString indent, QString extraAttributes) const | 295 Layer::toXmlString(QString indent, QString extraAttributes) const |
295 { | 296 { |