From 184448e767ccdeae66fe4d795757cace98033b0e Mon Sep 17 00:00:00 2001 From: Arno Date: Thu, 4 Oct 2012 06:59:44 +0200 Subject: Fix Mappings in PictureViewer2 Another fix for the new MappingTreeModel database layout: Make the mappings display correctly when showing an archived picture. For performance reasons I had to make PicFilesModel global and put it into a separate file. Also clean up MappingTreeModel: remove comments and unused functions. --- pictureviewer2.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pictureviewer2.h') diff --git a/pictureviewer2.h b/pictureviewer2.h index d9fec03..e245224 100644 --- a/pictureviewer2.h +++ b/pictureviewer2.h @@ -25,6 +25,7 @@ class PictureViewer2Item; class QGraphicsItem; class SmTreeItem; class MappingTreeModel; +class PicFilesModel; typedef QList PicData; typedef QList > PicDataList; @@ -88,6 +89,8 @@ class PictureViewer2 : public QGraphicsView { QPointF mMappingPos; QAction *mSlideA; QAction *mHideA; + MappingTreeModel *mMappingTreeModel; + PicFilesModel *mPicFilesModel; }; class PictureViewer2Item : public QGraphicsItem { -- cgit v1.2.3-70-g09d2