From f30d07e5acb83dd74bc6e6dc75b8b1c9e39e6e01 Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 24 Mar 2012 08:40:23 +0100 Subject: Show mappings in PictureViewer2 Hell, this was one heck of a bitch. Lots of changes just to show the mapping tree in PictureViewer2. Did I mention that I hate recursion? Added a function for fetching a SmTreeItem * from MappingTreeModel for paths, just to turn it into a QTextDocument in PictureViewer2. Of course everything is recursive. Did I say that I hate recursion? Well, as said in the comments, one recursion function seems fishy, but it works (tm). --- smtreeitem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'smtreeitem.cpp') diff --git a/smtreeitem.cpp b/smtreeitem.cpp index 56d9b6e..ed9f73e 100644 --- a/smtreeitem.cpp +++ b/smtreeitem.cpp @@ -57,7 +57,7 @@ int SmTreeItem::row() const{ return 0; } -SmTreeItem *SmTreeItem::parent(){ +SmTreeItem *SmTreeItem::parent() const{ return mParent; } -- cgit v1.2.3-70-g09d2