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/string.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'c++-qt/gats-qt/string.h') diff --git a/c++-qt/gats-qt/string.h b/c++-qt/gats-qt/string.h index 1e87db5..443c5a8 100644 --- a/c++-qt/gats-qt/string.h +++ b/c++-qt/gats-qt/string.h @@ -31,6 +31,8 @@ namespace Gats virtual void write( QIODevice &rOut ) const; virtual void read( QIODevice &rIn, char cType ); + + virtual QString toString( int iIndent=0 ) const; private: }; -- cgit v1.2.3