mirror of
https://github.com/miurahr/aqtinstall.git
synced 2025-12-18 13:14:37 +03:00
Some checks are pending
Check tox tests / Check packaging 📦 (push) Waiting to run
CodeQL / Analyze (python) (push) Waiting to run
Publish Python 🐍 distributions 📦 to PyPI / Build package (push) Waiting to run
Publish Python 🐍 distributions 📦 to PyPI / publish Python 🐍 distributions 📦 to PyPI (push) Blocked by required conditions
Test on GH actions environment / test (binary, windows-latest, 3.12, 6.6.3) (push) Waiting to run
Test on GH actions environment / test (standard, ubuntu-latest, 3.12, 6.5.3) (push) Waiting to run
Test on GH actions environment / test (standard, ubuntu-latest, 3.12, 6.6.3) (push) Waiting to run
Test on GH actions environment / test (standard, ubuntu-latest, 3.12, 6.8.0) (push) Waiting to run
Test on GH actions environment / test (standard, ubuntu-latest, 3.12, 6.8.1) (push) Waiting to run
Test on GH actions environment / test (standard, windows-latest, 3.12, 6.5.3) (push) Waiting to run
Test on GH actions environment / test (standard, windows-latest, 3.12, 6.6.3) (push) Waiting to run
Test on GH actions environment / test (standard, windows-latest, 3.12, 6.7.3) (push) Waiting to run
* chore(ci): expand test sources - Avoid zip archive from repository for security Signed-off-by: Hiroshi Miura <miurahr@linux.com> * chore(ci): download jom from official repository Signed-off-by: Hiroshi Miura <miurahr@linux.com> * chore(ci): revert jom to 1.1.3 Signed-off-by: Hiroshi Miura <miurahr@linux.com> * chore(ci): update md5 checks Signed-off-by: Hiroshi Miura <miurahr@linux.com> --------- Signed-off-by: Hiroshi Miura <miurahr@linux.com>
45 lines
879 B
C++
45 lines
879 B
C++
// Copyright (C) 2016 The Qt Company Ltd.
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
|
|
|
#include <QWindow>
|
|
#include <QOpenGLFunctions>
|
|
|
|
QT_BEGIN_NAMESPACE
|
|
class QPainter;
|
|
class QOpenGLContext;
|
|
class QOpenGLPaintDevice;
|
|
QT_END_NAMESPACE
|
|
|
|
//! [1]
|
|
class OpenGLWindow : public QWindow, protected QOpenGLFunctions
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit OpenGLWindow(QWindow *parent = nullptr);
|
|
~OpenGLWindow();
|
|
|
|
virtual void render(QPainter *painter);
|
|
virtual void render();
|
|
|
|
virtual void initialize();
|
|
|
|
void setAnimating(bool animating);
|
|
|
|
public slots:
|
|
void renderLater();
|
|
void renderNow();
|
|
|
|
protected:
|
|
bool event(QEvent *event) override;
|
|
|
|
void exposeEvent(QExposeEvent *event) override;
|
|
|
|
private:
|
|
bool m_animating = false;
|
|
|
|
QOpenGLContext *m_context = nullptr;
|
|
QOpenGLPaintDevice *m_device = nullptr;
|
|
};
|
|
//! [1]
|
|
|