diff options
author | Arno <am@disconnect.de> | 2015-03-21 10:29:09 +0100 |
---|---|---|
committer | Arno <am@disconnect.de> | 2015-03-21 10:29:09 +0100 |
commit | ac814248b52912a366d2eb62e8ff00f2caa7e4d7 (patch) | |
tree | e0f5957dd8fbb2572342fcbab4cf02e8a3a15ee1 /pictureviewer2.h | |
parent | 6116312ed547b9fa14e43b9f7a0e3d4d2007d2af (diff) | |
download | SheMov-ac814248b52912a366d2eb62e8ff00f2caa7e4d7.tar.gz SheMov-ac814248b52912a366d2eb62e8ff00f2caa7e4d7.tar.bz2 SheMov-ac814248b52912a366d2eb62e8ff00f2caa7e4d7.zip |
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.
Diffstat (limited to 'pictureviewer2.h')
-rw-r--r-- | pictureviewer2.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 { |