According to QUIP-18 [1], all tests file should be LicenseRef-Qt-Commercial OR GPL-3.0-only [1]: https://contribute.qt-project.org/quips/18 Pick-to: 6.7 Task-number: QTBUG-121787 Change-Id: I9657df5d660820e56c96d511ea49d321c54682e8 Reviewed-by: Christian Ehrlicher <ch.ehrlicher@gmx.de>
33 lines
654 B
C++
33 lines
654 B
C++
// Copyright (C) 2017 The Qt Company Ltd.
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
|
|
|
|
#ifndef RASTERWINDOW_H
|
|
#define RASTERWINDOW_H
|
|
|
|
#include <QtGui>
|
|
|
|
class RasterWindow : public QWindow
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit RasterWindow(QWindow *parent = nullptr);
|
|
|
|
virtual void render(QPainter *painter);
|
|
|
|
public slots:
|
|
void renderLater();
|
|
void renderNow();
|
|
|
|
protected:
|
|
bool event(QEvent *event) override;
|
|
|
|
void resizeEvent(QResizeEvent *event) override;
|
|
void exposeEvent(QExposeEvent *event) override;
|
|
|
|
private:
|
|
QBackingStore *m_backingStore;
|
|
bool m_update_pending;
|
|
};
|
|
|
|
#endif // RASTERWINDOW_H
|