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/tests/echo/mainwnd.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'c++-qt/tests') diff --git a/c++-qt/tests/echo/mainwnd.cpp b/c++-qt/tests/echo/mainwnd.cpp index 4b90421..13c93a1 100644 --- a/c++-qt/tests/echo/mainwnd.cpp +++ b/c++-qt/tests/echo/mainwnd.cpp @@ -26,5 +26,11 @@ void MainWnd::newConnection() void MainWnd::objectRead( Gats::Object *pObj ) { ((Gats::GatsStream *)sender())->writeObject( pObj ); + + Gats::Object *pCopy = pObj->clone(); delete pObj; + + ((Gats::GatsStream *)sender())->writeObject( pCopy ); + + delete pCopy; } -- cgit v1.2.3