diff options
| author | 2018-03-18 17:43:27 +0100 | |
|---|---|---|
| committer | 2018-03-18 17:43:27 +0100 | |
| commit | 8edc89703e5e0be26471432bc0e953d694bc92a5 (patch) | |
| tree | 1b5598828986b747dbed9a1b77a9a0494f014779 /result/scalarresult.cpp | |
| parent | 86bd8dbc2bba4023ef4d7e3ba9c21a4396c9ccd1 (diff) | |
| download | OneRoll-8edc89703e5e0be26471432bc0e953d694bc92a5.tar.gz OneRoll-8edc89703e5e0be26471432bc0e953d694bc92a5.zip | |
-Get copy for result
Diffstat (limited to 'result/scalarresult.cpp')
| -rw-r--r-- | result/scalarresult.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/result/scalarresult.cpp b/result/scalarresult.cpp index 1722cd2..138caf5 100644 --- a/result/scalarresult.cpp +++ b/result/scalarresult.cpp @@ -40,7 +40,12 @@ QVariant ScalarResult::getResult(Result::RESULT_TYPE type) else return {}; } - +Result* ScalarResult::getCopy() const +{ + auto copy = new ScalarResult(); + copy->setValue(m_value); + return copy; +} QString ScalarResult::toString(bool wl) { if(wl) |