From ac814248b52912a366d2eb62e8ff00f2caa7e4d7 Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 21 Mar 2015 10:29:09 +0100 Subject: Move NewPicsDialog to topLeft + selectAll When calling NewPicsDialog from PictureViewer, move it to the top left corner to not cover the pic itself. Also, select all pics from current directory when no files are marked. --- pictureviewer2.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pictureviewer2.h') diff --git a/pictureviewer2.h b/pictureviewer2.h index 99405e0..c9c7688 100644 --- a/pictureviewer2.h +++ b/pictureviewer2.h @@ -45,6 +45,7 @@ class PictureViewer2 : public QGraphicsView { void setShowInfoItem(bool show) { mShowInfoItem = show; } void setShowMappingItem(bool show) { mShowMappingItem = show; } void setShowMarkItem(bool show) { mShowMarkItem = show; } + void setCurrentDir(const QString &curDir) { mCurrentDir = curDir; } const PicDataList marked() { return mMarkedFiles; } PicData picData(const QString &fullPath); virtual QSize sizeHint() const; @@ -115,6 +116,7 @@ class PictureViewer2 : public QGraphicsView { bool mShowInfoItem; bool mShowMappingItem; bool mShowMarkItem; + QString mCurrentDir; }; class PictureViewer2Item : public QGraphicsItem { -- cgit v1.2.3-70-g09d2