aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/result/stringresult.cpp
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2015-04-25 11:37:46 +0200
committerRenaud G <renaud@rolisteam.org>2015-04-25 11:37:46 +0200
commit5acfe8b8352ba028235e5ecf007d1b9b4fa3a0f8 (patch)
tree16738510451648bc33298f79ca54fd0574ad0602 /result/stringresult.cpp
parentea649ea152b7797782ef0345f16de7bcbcc34767 (diff)
downloadOneRoll-5acfe8b8352ba028235e5ecf007d1b9b4fa3a0f8.tar.gz
OneRoll-5acfe8b8352ba028235e5ecf007d1b9b4fa3a0f8.zip
Dot tree now also displays the result tree. (must be improved).
Diffstat (limited to 'result/stringresult.cpp')
-rw-r--r--result/stringresult.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/result/stringresult.cpp b/result/stringresult.cpp
index 9f7d2e1..4dbd577 100644
--- a/result/stringresult.cpp
+++ b/result/stringresult.cpp
@@ -31,3 +31,7 @@ QVariant StringResult::getResult(RESULT_TYPE type)
return QVariant();
}
+QString StringResult::toString()
+{
+ return QString("StringResult_value_%1").arg(getText().replace(" ","_"));
+}