aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/projectnodes.h
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@qt.io>2017-07-05 16:01:59 +0200
committerTobias Hunger <tobias.hunger@qt.io>2017-07-21 12:49:07 +0000
commit7afae6b4fd0ad76676144f8f170ddf6c205c30a8 (patch)
tree4cf63bbb1d464b6f0250678991923dda8d3594b0 /src/plugins/projectexplorer/projectnodes.h
parent91dec7fe7a74d5109489fb9fc146b4e5121f3b36 (diff)
ProjectNodes: Allow to specify a list of extra locations for FolderNodes
This is useful for buildsystems to provide quick access to interesting locations, e.g. related to the targets they define. Change-Id: Ia23534ccaf15ae63b38354c563907c594ad6879c Reviewed-by: Jochen Becher <jochen_becher@gmx.de> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Diffstat (limited to 'src/plugins/projectexplorer/projectnodes.h')
-rw-r--r--src/plugins/projectexplorer/projectnodes.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/projectnodes.h b/src/plugins/projectexplorer/projectnodes.h
index 746f7437b4..d686bf4138 100644
--- a/src/plugins/projectexplorer/projectnodes.h
+++ b/src/plugins/projectexplorer/projectnodes.h
@@ -243,6 +243,18 @@ public:
void setDisplayName(const QString &name);
void setIcon(const QIcon &icon);
+ class LocationInfo {
+ public:
+ LocationInfo(const QString &dn, const Utils::FileName &p, const int l = -1) :
+ path(p), line(l), displayName(dn) { }
+
+ Utils::FileName path;
+ int line = -1;
+ QString displayName;
+ };
+ void setLocationInfo(const QList<LocationInfo> &info);
+ const QList<LocationInfo> locationInfo() const;
+
virtual QString addFileFilter() const;
bool supportsAction(ProjectAction action, Node *node) const override;
@@ -279,6 +291,7 @@ public:
protected:
QList<Node *> m_nodes;
+ QList<LocationInfo> m_locations;
private:
QString m_displayName;