From e1855a6ed118eccf93950c9821b75ca53646d774 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 11 Jun 2012 15:08:36 +0000 Subject: GatsCon can display nulls now. --- src/gatscon/gatstotree.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/gatscon/gatstotree.cpp') diff --git a/src/gatscon/gatstotree.cpp b/src/gatscon/gatstotree.cpp index d01e4b8..e388d5e 100644 --- a/src/gatscon/gatstotree.cpp +++ b/src/gatscon/gatstotree.cpp @@ -31,6 +31,10 @@ void gatsToTree( QTreeWidgetItem *p, Gats::Object *pObj ) case Gats::typeDictionary: gatsToTree( p, dynamic_cast( pObj ) ); break; + + case Gats::typeNull: + gatsToTree( p, dynamic_cast( pObj ) ); + break; } } @@ -81,3 +85,7 @@ void gatsToTree( QTreeWidgetItem *p, Gats::Dictionary *pObj ) } } +void gatsToTree( QTreeWidgetItem *p, Gats::Null *pObj ) +{ + p->setText( 1, "null"); +} -- cgit v1.2.3