diff options
author | Arno <am@disconnect.de> | 2013-09-14 04:13:08 +0200 |
---|---|---|
committer | Arno <am@disconnect.de> | 2013-09-14 04:13:08 +0200 |
commit | 72ce5602962f07d09c192cb79ef2fc5f67bbcaa9 (patch) | |
tree | 45af0febf1891379cd88668e39fe1dded023c595 /pictureviewer2.h | |
parent | 666db6b8c2d7704415946c0a8d69adb3cf5ae7f5 (diff) | |
download | SheMov-72ce5602962f07d09c192cb79ef2fc5f67bbcaa9.tar.gz SheMov-72ce5602962f07d09c192cb79ef2fc5f67bbcaa9.tar.bz2 SheMov-72ce5602962f07d09c192cb79ef2fc5f67bbcaa9.zip |
Preview fixes
* Don't show the mapping item in preview, because it has none.
* Use qApp->showOverrideCursor() instead of QWidget::cursor()
Diffstat (limited to 'pictureviewer2.h')
-rw-r--r-- | pictureviewer2.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pictureviewer2.h b/pictureviewer2.h index c6b7322..c03b9d3 100644 --- a/pictureviewer2.h +++ b/pictureviewer2.h @@ -41,6 +41,8 @@ class PictureViewer2 : public QGraphicsView { void setFile(const PicData &file); void setFile(QString fullPath = mDefaultFile); void setPixmap(const QPixmap &pm); + void setShowInfoItem(bool show) { mShowInfoItem = show; } + void setShowMappingItem(bool show) { mShowMappingItem = show; } PicData picData(const QString &fullPath); virtual QSize sizeHint() const; @@ -95,6 +97,8 @@ class PictureViewer2 : public QGraphicsView { PicFilesModel *mPicFilesModel; PicData mCurPicData; NewPicsDialog *mNewPicsDlg; + bool mShowInfoItem; + bool mShowMappingItem; }; class PictureViewer2Item : public QGraphicsItem { |