diff options
author | Arno <am@disconnect.de> | 2013-10-12 07:27:23 +0200 |
---|---|---|
committer | Arno <am@disconnect.de> | 2013-10-12 07:27:23 +0200 |
commit | 346b844eea4d5b19d51740b9b29d4f00d54fa373 (patch) | |
tree | 8d7b8e6df7585198be78139db10bb2a8ae1a07db /pictureviewer2.h | |
parent | 990218c07e2052f7e75af42a965cfc84b36e8371 (diff) | |
download | SheMov-346b844eea4d5b19d51740b9b29d4f00d54fa373.tar.gz SheMov-346b844eea4d5b19d51740b9b29d4f00d54fa373.tar.bz2 SheMov-346b844eea4d5b19d51740b9b29d4f00d54fa373.zip |
Fix show/hide events for PictureViewer2
check and uncheck the show/hide QAction on showEvent/hideEvent.
Diffstat (limited to 'pictureviewer2.h')
-rw-r--r-- | pictureviewer2.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/pictureviewer2.h b/pictureviewer2.h index c03b9d3..622397a 100644 --- a/pictureviewer2.h +++ b/pictureviewer2.h @@ -8,10 +8,10 @@ #ifndef PICTUREVIEWER2_H #define PICTUREVIEWER2_H -#include <QtWidgets/QGraphicsView> +#include <QGraphicsView> #include <QList> #include <QVariant> -#include <QtWidgets/QGraphicsItem> +#include <QGraphicsItem> #include <QStaticText> class QGraphicsScene; @@ -49,6 +49,7 @@ class PictureViewer2 : public QGraphicsView { public slots: void next(); void previous(); + void selectPic(const QString &path); void slide(bool); void readSettings(); void writeSettings(); @@ -62,7 +63,8 @@ class PictureViewer2 : public QGraphicsView { virtual void wheelEvent(QWheelEvent *event); virtual void contextMenuEvent(QContextMenuEvent *e); virtual void keyPressEvent(QKeyEvent *e); - virtual void hideEvent(QHideEvent *); + virtual void showEvent(QShowEvent *e); + virtual void hideEvent(QHideEvent *e); private slots: void showFile(const PicData &data); |