aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/node/listaliasnode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'node/listaliasnode.cpp')
-rw-r--r--node/listaliasnode.cpp23
1 files changed, 16 insertions, 7 deletions
diff --git a/node/listaliasnode.cpp b/node/listaliasnode.cpp
index 1809eac..9ced186 100644
--- a/node/listaliasnode.cpp
+++ b/node/listaliasnode.cpp
@@ -59,14 +59,23 @@ QString ListAliasNode::buildList() const
}
return result;
}
-QString ListAliasNode::toString() const
+QString ListAliasNode::toString(bool wl) const
{
- QStringList resultList;
- foreach(DiceAlias* key, *m_aliasList)
- {
- resultList << "{" <<key->getCommand() << key->getValue()<< "}";
- }
- return QString("ListAliasNode [label=\"ListAliasNode %1\"]").arg(resultList.join(","));
+ QStringList resultList;
+ foreach(DiceAlias* key, *m_aliasList)
+ {
+ resultList << "{" <<key->getCommand() << key->getValue()<< "}";
+ }
+
+ if(wl)
+ {
+ return QString("%1 [label=\"ListAliasNode %2\"]").arg(m_id).arg(resultList.join(","));
+ }
+ else
+ {
+ return m_id;
+ }
+
}
qint64 ListAliasNode::getPriority() const