summaryrefslogtreecommitdiffstats
path: root/tests/manual/subsurface/shmwindow.h
blob: 55a0336e6296b9e5174385fc565658a6f603565f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright (C) 2015 LG Electronics Ltd, author: <mikko.levonmaa@lge.com>
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

#ifndef SHMWINDOW_H
#define SHMWINDOW_H

#include <QtGui>

class ShmWindow : public QRasterWindow
{
    Q_OBJECT
public:
    explicit ShmWindow(QWindow *parent);

protected:
    void paintEvent(QPaintEvent *event) override;
    void timerEvent(QTimerEvent *) override;

private:
    int m_rotation;
    int m_timer;
};
#endif // SHMWINDOW_H