From f52e18878c84771501855532f1e4c565c1c154cc Mon Sep 17 00:00:00 2001 From: con Date: Tue, 9 Feb 2010 17:40:59 +0100 Subject: Move active target name neatly to the middle. --- src/plugins/projectexplorer/targetselector.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/projectexplorer/targetselector.cpp') diff --git a/src/plugins/projectexplorer/targetselector.cpp b/src/plugins/projectexplorer/targetselector.cpp index 8c1286a558..869c236c1f 100644 --- a/src/plugins/projectexplorer/targetselector.cpp +++ b/src/plugins/projectexplorer/targetselector.cpp @@ -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); -- cgit v1.2.1