aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scalarresult.cpp
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2014-12-09 22:07:31 +0100
committerRenaud G <renaud@rolisteam.org>2014-12-09 22:07:31 +0100
commit2685e8e4fbbc480bbc9edf991faace7082987f38 (patch)
treefcd9b208f08a36346134de6c8ee3913b8d31fc2f /scalarresult.cpp
parentfa1c05a58698d3a6c049479eb8f7d88ac9ddb348 (diff)
downloadOneRoll-2685e8e4fbbc480bbc9edf991faace7082987f38.tar.gz
OneRoll-2685e8e4fbbc480bbc9edf991faace7082987f38.zip
-New API for result type.
Diffstat (limited to 'scalarresult.cpp')
-rw-r--r--scalarresult.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/scalarresult.cpp b/scalarresult.cpp
index 3500675..8c924fe 100644
--- a/scalarresult.cpp
+++ b/scalarresult.cpp
@@ -23,6 +23,7 @@
ScalarResult::ScalarResult()
{
+ m_resultTypes = Result::SCALAR;
}
@@ -30,12 +31,8 @@ void ScalarResult::setValue(qreal i)
{
m_value=i;
}
-qreal ScalarResult::getScalar()
+QVariant ScalarResult::getResult(Result::RESULT_TYPE type)
{
return m_value;
}
-bool ScalarResult::isScalar() const
-{
- return true;
-}