1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-07-14 10:54:24 +02:00

Added graph grid option

Code cleanup
This commit is contained in:
2016-10-17 23:14:07 +02:00
parent a6b2a477a1
commit 1160c6d385
15 changed files with 265 additions and 142 deletions

View File

@ -40,6 +40,9 @@ void InfoItem::paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
QList<KV>::const_iterator i;
int width = 0;
painter->setRenderHint(QPainter::Antialiasing, false);
for (i = _list.constBegin(); i != _list.constEnd(); i++) {
painter->drawText(width, fm.height() - fm.descent(), i->key + ": ");
width += fm.width(i->key + ": ");