From d4c03f1eb5627294df3675de2e8e55fd721e37d8 Mon Sep 17 00:00:00 2001 From: Renaud G Date: Wed, 22 Apr 2015 10:57:53 +0200 Subject: management of highligth dice --- node/countexecutenode.cpp | 2 +- node/keepdiceexecnode.cpp | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'node') diff --git a/node/countexecutenode.cpp b/node/countexecutenode.cpp index 1050efc..ff3d67b 100644 --- a/node/countexecutenode.cpp +++ b/node/countexecutenode.cpp @@ -35,7 +35,7 @@ void CountExecuteNode::run(ExecutionNode *previous) qint64 sum = 0; foreach(Die* dice,diceList) { - sum+=m_validator->hasValid(dice,true); + sum+=m_validator->hasValid(dice,true,true); } m_scalarResult->setValue(sum); diff --git a/node/keepdiceexecnode.cpp b/node/keepdiceexecnode.cpp index 62b4c8f..e8cfac8 100644 --- a/node/keepdiceexecnode.cpp +++ b/node/keepdiceexecnode.cpp @@ -26,6 +26,11 @@ m_previousNode = previous; diceList2 = diceList.mid(0,m_numberOfDice); + foreach(Die* tmp,diceList.mid(m_numberOfDice,-1)) + { + tmp->setHighlighted(false); + } + m_diceResult->setResultList(diceList2); if(NULL!=m_nextNode) { -- cgit v1.2.3-70-g09d2