/* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. */ #ifndef VIDEOVIEWER_H #define VIDEOVIEWER_H #include class QMediaPlayer; class VideoViewer : public QVideoWidget { public: VideoViewer(QWidget *parent = nullptr); QMediaPlayer* player() { return mPlayer; } bool lastFullScreen() { return mLastFullScreen; } void setLastFullScreen(bool last) { mLastFullScreen = last; } public slots: void readSettings(); void writeSettings(); protected: virtual void keyPressEvent(QKeyEvent *e); virtual void closeEvent(QCloseEvent *e); private: QMediaPlayer *mPlayer; bool mLastFullScreen; }; #endif // VIDEOVIEWER_H