From b02f4fef1d063f03b6e8b2b961a9049ad53d6c68 Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 30 Apr 2011 11:43:27 +0200 Subject: 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. --- pictureviewer.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pictureviewer.h') 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 { -- cgit v1.2.3-70-g09d2