comparison src/changesetitem.cpp @ 391:1a811e7721f1 item_appearance_adjustments

Alignment fix: avoid integer division
author Chris Cannam <chris.cannam@eecs.qmul.ac.uk>
date Tue, 24 May 2011 17:38:10 +0100
parents ef31a55c86b6
children cf18694f64a3
comparison
equal deleted inserted replaced
390:ef31a55c86b6 391:1a811e7721f1
350 paint->save(); 350 paint->save();
351 paint->setPen(Qt::NoPen); 351 paint->setPen(Qt::NoPen);
352 paint->drawRoundedRect(r, 7, 7); 352 paint->drawRoundedRect(r, 7, 7);
353 paint->setBrush(QBrush(userColour)); 353 paint->setBrush(QBrush(userColour));
354 paint->drawRoundedRect(QRectF(x0 + 0.5, 0.5, width - 4, fh - 0.5), 7, 7); 354 paint->drawRoundedRect(QRectF(x0 + 0.5, 0.5, width - 4, fh - 0.5), 7, 7);
355 paint->drawRect(QRectF(x0 + 0.5, fh/2, width - 4, fh/2)); 355 paint->drawRect(QRectF(x0 + 0.5, fh/2.0, width - 4, fh/2.0));
356 paint->restore(); 356 paint->restore();
357 357
358 paint->setPen(QPen(Qt::white)); 358 paint->setPen(QPen(Qt::white));
359 359
360 QString person = TextAbbrev::abbreviate(m_changeset->authorName(), 360 QString person = TextAbbrev::abbreviate(m_changeset->authorName(),