diff options
author | Arno <am@disconnect.de> | 2012-04-03 17:29:06 +0200 |
---|---|---|
committer | Arno <am@disconnect.de> | 2012-04-03 17:29:06 +0200 |
commit | 5bf304d22564666621c35919b2d9aea1aa5b4b5a (patch) | |
tree | f63dd73a9c0ce4aeaeb2ca8af084075ea00638da /pictureviewer2.h | |
parent | 3405dbb9a1b6601bf7c343d676a4abe4e5981a29 (diff) | |
download | SheMov-5bf304d22564666621c35919b2d9aea1aa5b4b5a.tar.gz SheMov-5bf304d22564666621c35919b2d9aea1aa5b4b5a.tar.bz2 SheMov-5bf304d22564666621c35919b2d9aea1aa5b4b5a.zip |
Finally fix MappingItem
Well, the comment was right. The previous implementation was fishy at
best. It simply didn't work. Could have been so ease. Just look at the
commit size :)
Don't forget that there will be an empty line at the beginning of the
QTextDocument if you don't check the first insert.
Diffstat (limited to 'pictureviewer2.h')
-rw-r--r-- | pictureviewer2.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pictureviewer2.h b/pictureviewer2.h index c776c53..4b5915d 100644 --- a/pictureviewer2.h +++ b/pictureviewer2.h @@ -62,7 +62,7 @@ class PictureViewer2 : public QGraphicsView { void setupDialog(); void setGradient(const QPixmap &pic); QTextDocument *treeToString(const SmTreeItem *root) const; - void treeToStringRecursive(const SmTreeItem *parent, QTextCursor *cursor) const; + void treeToStringRecursive(const SmTreeItem *parent, QTextCursor *cursor, int indent) const; QPointF getPos(PictureViewer2Item *item, int pos, const QPointF &movPos); QString constructWindowTitle() const; PicDataList mFiles; |