aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/result/stringresult.cpp
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2015-08-28 00:05:06 +0200
committerRenaud G <renaud@rolisteam.org>2015-08-28 00:05:06 +0200
commit3a8b315ab8a448a443cce277f3f26a1996403e06 (patch)
tree4e5e5d2509a7eb160a3fc286e89b595079fd871b /result/stringresult.cpp
parentf8a6f0f2717ebc4e0125501147a8a3d79a621ad5 (diff)
parent41b9202ef9102cb94e5b3fdcf8ce760509abaa49 (diff)
downloadOneRoll-3a8b315ab8a448a443cce277f3f26a1996403e06.tar.gz
OneRoll-3a8b315ab8a448a443cce277f3f26a1996403e06.zip
Merge branch 'master' of github.com:obiwankennedy/DiceParser
Diffstat (limited to 'result/stringresult.cpp')
-rw-r--r--result/stringresult.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/result/stringresult.cpp b/result/stringresult.cpp
index 4dbd577..474ae23 100644
--- a/result/stringresult.cpp
+++ b/result/stringresult.cpp
@@ -2,6 +2,7 @@
StringResult::StringResult()
{
+ m_highlight = true;
m_resultTypes = Result::STRING;
}
void StringResult::setText(QString text)
@@ -35,3 +36,12 @@ QString StringResult::toString()
{
return QString("StringResult_value_%1").arg(getText().replace(" ","_"));
}
+void StringResult::setHighLight(bool b)
+{
+ m_highlight = b;
+}
+
+bool StringResult::hasHighLight() const
+{
+ return m_highlight;
+}