aef55501bc
All linux CI machines have gtk3 installed. And Python GTK things are too complicate to setup. Pick-to: 6.4 6.3 6.2 5.15 Change-Id: I3c0d967f61aebea508784df79569b9d0064f66e2 Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
33 lines
680 B
C++
33 lines
680 B
C++
// Copyright (C) 2017 The Qt Company Ltd.
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
|
|
|
#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
|