From 3cbd1038e20dcb2b25db4e74666ec21766642729 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Wed, 6 Apr 2022 23:45:42 -0700 Subject: toString works. It does indent automatically. I figure, you know, if you're converting to a string then a big part of the reason is so you can read it. In that case, why make it optional? --- c++-qt/gats-qt/integer.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'c++-qt/gats-qt/integer.h') diff --git a/c++-qt/gats-qt/integer.h b/c++-qt/gats-qt/integer.h index 3427682..2f08d43 100644 --- a/c++-qt/gats-qt/integer.h +++ b/c++-qt/gats-qt/integer.h @@ -33,6 +33,8 @@ namespace Gats virtual void write( QIODevice &rOut ) const; virtual void read( QIODevice &rIn, char cType ); + + virtual QString toString( int iIndent=0 ) const; template static void readPackedInt( QIODevice &rStream, itype &rOut ) -- cgit v1.2.3