mirror of
https://github.com/crystalidea/qt6windows7.git
synced 2024-11-24 12:30:32 +08:00
27 lines
544 B
C
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
|