summaryrefslogtreecommitdiff
path: root/src/plugins/projectexplorer/targetselector.cpp
diff options
context:
space:
mode:
authordt <qtc-committer@nokia.com>2010-03-26 12:44:55 +0100
committerdt <qtc-committer@nokia.com>2010-03-26 12:53:06 +0100
commit9f0d403ecd440ffe1153a699fc4420deaf349243 (patch)
tree2ff0f49ffeb70214f6c4f044d5c728736e4fa963 /src/plugins/projectexplorer/targetselector.cpp
parent10809cdd99be078eb30f87866977fdb1f49c15d2 (diff)
downloadqt-creator-9f0d403ecd440ffe1153a699fc4420deaf349243.tar.gz
Sync the active target on the projects page with the active target
Diffstat (limited to 'src/plugins/projectexplorer/targetselector.cpp')
-rw-r--r--src/plugins/projectexplorer/targetselector.cpp19
1 files changed, 2 insertions, 17 deletions
diff --git a/src/plugins/projectexplorer/targetselector.cpp b/src/plugins/projectexplorer/targetselector.cpp
index 2c4ca1421b..a0936ebc07 100644
--- a/src/plugins/projectexplorer/targetselector.cpp
+++ b/src/plugins/projectexplorer/targetselector.cpp
@@ -43,7 +43,6 @@ void TargetSelector::insertTarget(int index, const QString &name)
Target target;
target.name = name;
target.currentSubIndex = 0;
- target.isActive = false;
m_targets.insert(index, target);
@@ -54,15 +53,6 @@ void TargetSelector::insertTarget(int index, const QString &name)
update();
}
-void TargetSelector::markActive(int index)
-{
- QTC_ASSERT(index >= 0 && index < m_targets.count(), return);
-
- for (int i = 0; i < m_targets.count(); ++i)
- m_targets[i].isActive = (i == index);
- update();
-}
-
void TargetSelector::removeTarget(int index)
{
QTC_ASSERT(index >= 0 && index < m_targets.count(), return);
@@ -218,13 +208,8 @@ void TargetSelector::paintEvent(QPaintEvent *event)
p.setPen(QColor(0, 0, 0));
}
p.drawPixmap(x, 1, *pixmap);
- QString targetName;
- if (target.isActive)
- targetName = QChar('*') + target.name + QChar('*');
- else
- targetName = target.name;
- p.drawText(x + (TARGET_WIDTH - fm.width(targetName))/2 + 1, 7 + fm.ascent(),
- targetName);
+ p.drawText(x + (TARGET_WIDTH - fm.width(target.name))/2 + 1, 7 + fm.ascent(),
+ target.name);
x += TARGET_WIDTH;
p.drawLine(x, 1, x, TARGET_HEIGHT);
++x;