diff options
author | Mike Buland <eichlan@xagasoft.com> | 2012-04-06 15:24:11 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2012-04-06 15:24:11 +0000 |
commit | f55b26080c85ea0432a468aa793886d019e1e8c2 (patch) | |
tree | eb49ba8244536f5394fe18bae68e07303c6e3d18 /c++-qt/src/float.cpp | |
parent | 52bac339b6267aa9aaa3e2e0d02c2a62e47f83e4 (diff) | |
download | libgats-f55b26080c85ea0432a468aa793886d019e1e8c2.tar.gz libgats-f55b26080c85ea0432a468aa793886d019e1e8c2.tar.bz2 libgats-f55b26080c85ea0432a468aa793886d019e1e8c2.tar.xz libgats-f55b26080c85ea0432a468aa793886d019e1e8c2.zip |
The Qt API now supports cloning.
Diffstat (limited to '')
-rw-r--r-- | c++-qt/src/float.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/c++-qt/src/float.cpp b/c++-qt/src/float.cpp index a82edec..fedecf3 100644 --- a/c++-qt/src/float.cpp +++ b/c++-qt/src/float.cpp | |||
@@ -17,6 +17,11 @@ Gats::Float::~Float() | |||
17 | { | 17 | { |
18 | } | 18 | } |
19 | 19 | ||
20 | Gats::Object *Gats::Float::clone() const | ||
21 | { | ||
22 | return new Gats::Float( fVal ); | ||
23 | } | ||
24 | |||
20 | void Gats::Float::write( QIODevice &rOut ) const | 25 | void Gats::Float::write( QIODevice &rOut ) const |
21 | { | 26 | { |
22 | if( fVal == 0.0 ) | 27 | if( fVal == 0.0 ) |