diff options
author | Arno <arno@disconnect.de> | 2015-06-06 07:36:39 +0200 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2015-06-06 07:36:39 +0200 |
commit | bfe87ae31af8398d3bc0bf26a7dac3dbdecec569 (patch) | |
tree | ead648607431acf59662a66765e8f0b804f2e0c1 /pictureviewer2.h | |
parent | 6f8107c1cb22938ee4c91d0993dc82e624c7c8de (diff) | |
download | SheMov-bfe87ae31af8398d3bc0bf26a7dac3dbdecec569.tar.gz SheMov-bfe87ae31af8398d3bc0bf26a7dac3dbdecec569.tar.bz2 SheMov-bfe87ae31af8398d3bc0bf26a7dac3dbdecec569.zip |
Resize PictureViewer2
Make it possible to resize the PictureViewer2 and get rid of fixed size.
Also, make sure that the current picture is redrawn when we get a resize
event.
Diffstat (limited to 'pictureviewer2.h')
-rw-r--r-- | pictureviewer2.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pictureviewer2.h b/pictureviewer2.h index c9c7688..bfc1977 100644 --- a/pictureviewer2.h +++ b/pictureviewer2.h @@ -48,7 +48,6 @@ class PictureViewer2 : public QGraphicsView { void setCurrentDir(const QString &curDir) { mCurrentDir = curDir; } const PicDataList marked() { return mMarkedFiles; } PicData picData(const QString &fullPath); - virtual QSize sizeHint() const; public slots: void next(); @@ -73,6 +72,7 @@ class PictureViewer2 : public QGraphicsView { virtual void keyPressEvent(QKeyEvent *e); virtual void showEvent(QShowEvent *e); virtual void hideEvent(QHideEvent *e); + virtual void resizeEvent(QResizeEvent *event); private slots: void showFile(const PicData &data); @@ -90,7 +90,6 @@ class PictureViewer2 : public QGraphicsView { PicDataList mFiles; PicDataList mMarkedFiles; QGraphicsScene *mScene; - QSize mSize; QGraphicsPixmapItem *mCur; int mCurPos; int mConfigInfoPos; |