summaryrefslogtreecommitdiff
path: root/src/plugins/projectexplorer/targetsettingspanel.h
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@nokia.com>2010-06-29 12:56:08 +0200
committerTobias Hunger <tobias.hunger@nokia.com>2010-06-29 12:58:43 +0200
commitedfe3fec1c96962106d20a1792567472219af129 (patch)
treed6c9160b6c6835bdccd0d39bbe3c8a653acef373 /src/plugins/projectexplorer/targetsettingspanel.h
parentd8ad6aa275ce4ab7e0827aa342d75c6a2f5c3f5c (diff)
downloadqt-creator-edfe3fec1c96962106d20a1792567472219af129.tar.gz
Use popup menu when selecting new targets
Use a popup menu when adding new targets in projects mode. Task-number: QTCREATORBUG-1763
Diffstat (limited to 'src/plugins/projectexplorer/targetsettingspanel.h')
-rw-r--r--src/plugins/projectexplorer/targetsettingspanel.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/plugins/projectexplorer/targetsettingspanel.h b/src/plugins/projectexplorer/targetsettingspanel.h
index fa510c69a6..6d449ec1c7 100644
--- a/src/plugins/projectexplorer/targetsettingspanel.h
+++ b/src/plugins/projectexplorer/targetsettingspanel.h
@@ -35,6 +35,11 @@
#include <QtGui/QStackedWidget>
#include <QtGui/QWidget>
+QT_BEGIN_NAMESPACE
+class QAction;
+class QMenu;
+QT_END_NAMESPACE
+
namespace ProjectExplorer {
class Target;
@@ -55,8 +60,8 @@ public:
private slots:
void currentTargetChanged(int targetIndex, int subIndex);
- void addTarget();
void removeTarget();
+ void addTarget(QAction *);
void targetAdded(ProjectExplorer::Target *target);
void removedTarget(ProjectExplorer::Target *target);
void activeTargetChanged(ProjectExplorer::Target *target);
@@ -70,6 +75,7 @@ private:
QWidget *m_noTargetLabel;
PanelsWidget *m_panelWidgets[2];
QList<Target *> m_targets;
+ QMenu *m_addMenu;
};
} // namespace Internal