forked from qt-creator/qt-creator
Move active target name neatly to the middle.
This commit is contained in:
@@ -161,7 +161,7 @@ void TargetSelector::paintEvent(QPaintEvent *event)
|
|||||||
targetName = QChar('*') + target.name + QChar('*');
|
targetName = QChar('*') + target.name + QChar('*');
|
||||||
else
|
else
|
||||||
targetName = target.name;
|
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);
|
targetName);
|
||||||
x += TARGET_WIDTH;
|
x += TARGET_WIDTH;
|
||||||
p.drawLine(x, 1, x, TARGET_HEIGHT);
|
p.drawLine(x, 1, x, TARGET_HEIGHT);
|
||||||
|
|||||||
Reference in New Issue
Block a user