From 5bf304d22564666621c35919b2d9aea1aa5b4b5a Mon Sep 17 00:00:00 2001 From: Arno Date: Tue, 3 Apr 2012 17:29:06 +0200 Subject: 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. --- pictureviewer2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pictureviewer2.h') 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; -- cgit v1.2.3-70-g09d2