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/boolean.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'c++-qt/gats-qt/boolean.h') diff --git a/c++-qt/gats-qt/boolean.h b/c++-qt/gats-qt/boolean.h index e6d10af..07dcbc3 100644 --- a/c++-qt/gats-qt/boolean.h +++ b/c++-qt/gats-qt/boolean.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: bool bVal; -- cgit v1.2.3