forked from qt-creator/qt-creator
ProjectNodes: Move supportedActions to Node
By default this simply calls the parent's supportedActions. Most changes are due to the enum moving. Change-Id: I25bf21b712cca48450014dbb0f748ac0c461e029 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com> Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
@@ -178,6 +178,11 @@ bool Node::isEnabled() const
|
||||
return parentFolderNode()->isEnabled();
|
||||
}
|
||||
|
||||
QList<ProjectAction> Node::supportedActions(Node *node) const
|
||||
{
|
||||
return parentFolderNode()->supportedActions(node);
|
||||
}
|
||||
|
||||
void Node::setNodeType(NodeType type)
|
||||
{
|
||||
m_nodeType = type;
|
||||
@@ -730,6 +735,12 @@ SessionNode::SessionNode(QObject *parentObject)
|
||||
setNodeType(SessionNodeType);
|
||||
}
|
||||
|
||||
QList<ProjectAction> SessionNode::supportedActions(Node *node) const
|
||||
{
|
||||
Q_UNUSED(node)
|
||||
return QList<ProjectAction>();
|
||||
}
|
||||
|
||||
QList<NodesWatcher*> SessionNode::watchers() const
|
||||
{
|
||||
return m_watchers;
|
||||
|
||||
Reference in New Issue
Block a user