diff options
author | Arno <am@disconnect.de> | 2011-04-30 11:43:27 +0200 |
---|---|---|
committer | Arno <am@disconnect.de> | 2011-04-30 11:43:27 +0200 |
commit | b02f4fef1d063f03b6e8b2b961a9049ad53d6c68 (patch) | |
tree | 72d2adb9ebacfa05084ae484ed9d50a3935f3c2c /pictureviewer.h | |
parent | f0ac8500b63511a8307f332c4b86670545fc4ca6 (diff) | |
download | SheMov-b02f4fef1d063f03b6e8b2b961a9049ad53d6c68.tar.gz SheMov-b02f4fef1d063f03b6e8b2b961a9049ad53d6c68.tar.bz2 SheMov-b02f4fef1d063f03b6e8b2b961a9049ad53d6c68.zip |
PictureViewer fixes
Add an option making resizing the picture viewer to the size of
the picture configurable. It's desirable when using a tiling
window manager.
Diffstat (limited to 'pictureviewer.h')
-rw-r--r-- | pictureviewer.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pictureviewer.h b/pictureviewer.h index d4fba4c..adfa537 100644 --- a/pictureviewer.h +++ b/pictureviewer.h @@ -26,6 +26,7 @@ class PictureViewer : public QGraphicsView { void showPic(const QString &path, bool enableDirEntries = true); void next(); void previous(); + void readSettings(); protected: void wheelEvent(QWheelEvent *event); @@ -41,6 +42,7 @@ class PictureViewer : public QGraphicsView { QString mCurrentDir; QFileInfoList mDirEntries; QFileInfoList::const_iterator mCurrentEntry; + bool mResize; }; class PictureviewerInfoItem : public QGraphicsItem { |