aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/result/scalarresult.cpp
diff options
context:
space:
mode:
authorRenaud G <renaud@rolisteam.org>2019-07-25 09:59:29 +0200
committerRenaud G <renaud@rolisteam.org>2019-07-25 09:59:29 +0200
commitbb6b87a2685c0d71b5c38be33c100f85ac0b9cee (patch)
tree81da599ceec1368e55fee5fd6a4dd0173fc39b5f /result/scalarresult.cpp
parent6f499de159eeac37fe473f945042e13359dc2d40 (diff)
downloadOneRoll-bb6b87a2685c0d71b5c38be33c100f85ac0b9cee.tar.gz
OneRoll-bb6b87a2685c0d71b5c38be33c100f85ac0b9cee.zip
Rework of the component to be a proper lib
Diffstat (limited to 'result/scalarresult.cpp')
-rw-r--r--result/scalarresult.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/result/scalarresult.cpp b/result/scalarresult.cpp
index 089c4b8..ec2b5f0 100644
--- a/result/scalarresult.cpp
+++ b/result/scalarresult.cpp
@@ -21,18 +21,15 @@
***************************************************************************/
#include "scalarresult.h"
-ScalarResult::ScalarResult()
-{
- m_resultTypes= Result::SCALAR;
-}
+ScalarResult::ScalarResult() {}
void ScalarResult::setValue(qreal i)
{
m_value= i;
}
-QVariant ScalarResult::getResult(Result::RESULT_TYPE type)
+QVariant ScalarResult::getResult(Dice::RESULT_TYPE type)
{
- if(SCALAR == type)
+ if(Dice::RESULT_TYPE::SCALAR == type)
{
return m_value;
}