summaryrefslogtreecommitdiffstats
path: root/smtreeitem.h
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2012-03-24 08:40:23 +0100
committerArno <am@disconnect.de>2012-03-24 08:40:23 +0100
commitf30d07e5acb83dd74bc6e6dc75b8b1c9e39e6e01 (patch)
treea5a7f348cea349330d230d96d59e79ec8adf7ead /smtreeitem.h
parente788be03472f1617a05274dac6d7f8939ca85f46 (diff)
downloadSheMov-f30d07e5acb83dd74bc6e6dc75b8b1c9e39e6e01.tar.gz
SheMov-f30d07e5acb83dd74bc6e6dc75b8b1c9e39e6e01.tar.bz2
SheMov-f30d07e5acb83dd74bc6e6dc75b8b1c9e39e6e01.zip
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).
Diffstat (limited to 'smtreeitem.h')
-rw-r--r--smtreeitem.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/smtreeitem.h b/smtreeitem.h
index 28ab77a..b0b9ca7 100644
--- a/smtreeitem.h
+++ b/smtreeitem.h
@@ -22,7 +22,7 @@ class SmTreeItem {
int childCount() const;
int columnCount() const;
int row() const;
- SmTreeItem *parent();
+ SmTreeItem *parent() const;
void setParent(SmTreeItem *parent);
QVariant data(int column) const;
void setData(int column, const QVariant &data);