mirror of
https://github.com/vanilla-wiiu/vanilla.git
synced 2025-01-22 16:21:48 -05:00
27 lines
No EOL
417 B
C++
27 lines
No EOL
417 B
C++
#ifndef VIEWER_H
|
|
#define VIEWER_H
|
|
|
|
#include <QOpenGLWidget>
|
|
|
|
class Viewer : public QOpenGLWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
Viewer(QWidget *parent = nullptr);
|
|
|
|
public slots:
|
|
void setImage(const QImage &image);
|
|
|
|
signals:
|
|
void requestExitFullScreen();
|
|
|
|
protected:
|
|
virtual void paintGL() override;
|
|
virtual void keyPressEvent(QKeyEvent *key) override;
|
|
|
|
private:
|
|
QImage m_image;
|
|
|
|
};
|
|
|
|
#endif // VIEWER_H
|