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/list.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'c++-qt/gats-qt/list.h') diff --git a/c++-qt/gats-qt/list.h b/c++-qt/gats-qt/list.h index 27c17c3..f87ddd7 100644 --- a/c++-qt/gats-qt/list.h +++ b/c++-qt/gats-qt/list.h @@ -29,6 +29,8 @@ namespace Gats virtual void write( QIODevice &rOut ) const; virtual void read( QIODevice &rIn, char cType ); + + virtual QString toString( int iIndent=0 ) const; void append( const char *s ); void append( const QByteArray &s ); -- cgit v1.2.3