summaryrefslogtreecommitdiff
path: root/src/plugins/projectexplorer/targetselector.cpp
diff options
context:
space:
mode:
authorcon <qtc-committer@nokia.com>2010-02-09 17:40:59 +0100
committercon <qtc-committer@nokia.com>2010-02-09 17:41:37 +0100
commitf52e18878c84771501855532f1e4c565c1c154cc (patch)
treebbff7eb64bc05b437b8733a6287639875fa6d1ad /src/plugins/projectexplorer/targetselector.cpp
parentaa094ee871c6955bd6c04da66a8602dfa9b29eed (diff)
downloadqt-creator-f52e18878c84771501855532f1e4c565c1c154cc.tar.gz
Move active target name neatly to the middle.
Diffstat (limited to 'src/plugins/projectexplorer/targetselector.cpp')
-rw-r--r--src/plugins/projectexplorer/targetselector.cpp2
1 files changed, 1 insertions, 1 deletions
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);