qt6windows7/tests/benchmarks/gui/animation/qanimation/dummyobject.h
2023-10-29 23:33:08 +01:00

27 lines
544 B
C++

// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
#include <QtGui>
#ifndef _DUMMYOBJECT_H__
class DummyObject : public QObject
{
Q_OBJECT
Q_PROPERTY(QRect rect READ rect WRITE setRect)
Q_PROPERTY(float opacity READ opacity WRITE setOpacity)
public:
DummyObject();
QRect rect() const;
void setRect(const QRect &r);
float opacity() const;
void setOpacity(float);
private:
QRect m_rect;
float m_opacity;
};
#endif