From f55b26080c85ea0432a468aa793886d019e1e8c2 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Fri, 6 Apr 2012 15:24:11 +0000 Subject: The Qt API now supports cloning. --- c++-qt/src/integer.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'c++-qt/src/integer.cpp') diff --git a/c++-qt/src/integer.cpp b/c++-qt/src/integer.cpp index bb6da80..82727f3 100644 --- a/c++-qt/src/integer.cpp +++ b/c++-qt/src/integer.cpp @@ -14,6 +14,11 @@ Gats::Integer::~Integer() { } +Gats::Object *Gats::Integer::clone() const +{ + return new Gats::Integer( iVal ); +} + void Gats::Integer::write( QIODevice &rOut ) const { rOut.write("i", 1 ); -- cgit v1.2.3