Move active target name neatly to the middle.

This commit is contained in:
con
2010-02-09 17:40:59 +01:00
parent aa094ee871
commit f52e18878c

View File

@@ -161,7 +161,7 @@ void TargetSelector::paintEvent(QPaintEvent *event)
targetName = QChar('*') + target.name + QChar('*');
else
targetName = target.name;
p.drawText(x + (TARGET_WIDTH - fm.width(target.name))/2 + 1, 7 + fm.ascent(),
p.drawText(x + (TARGET_WIDTH - fm.width(targetName))/2 + 1, 7 + fm.ascent(),
targetName);
x += TARGET_WIDTH;
p.drawLine(x, 1, x, TARGET_HEIGHT);