(b3021c257dd430f4019c31a3eb1d55d929642c76)
#include <QtWaylandCompositor/QWaylandCompositorExtension>
#include <QtQml/QQmlParserStatus>
#include <QtQml/QQmlListProperty>
Go to the source code of this file.
◆ Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_CLASS
#define Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_CLASS |
( |
| className | ) |
|
Value:
{ \
\
Q_OBJECT \
Q_PROPERTY(QQmlListProperty<QObject>
data READ
data DESIGNABLE
false) \
Q_CLASSINFO("DefaultProperty", "data") \
public: \
QQmlListProperty<QObject>
data() \
{ \
return QQmlListProperty<QObject>(this, &m_objects); \
} \
void classBegin() override {} \
void componentComplete()
override {
if (!isInitialized())
initialize(); } \
private: \
QList<QObject *> m_objects; \
};
The QQmlParserStatus class provides updates on the QML parser state.
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
const char className[16]
[1]
Definition at line 19 of file qwaylandquickextension.h.
◆ Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_CONTAINER_CLASS
#define Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_CONTAINER_CLASS |
( |
| className | ) |
|
◆ Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_NAMED_CLASS
#define Q_COMPOSITOR_DECLARE_QUICK_EXTENSION_NAMED_CLASS |
( |
| className, |
|
|
| QmlType ) |
Value:
{ \
\
Q_OBJECT \
Q_PROPERTY(QQmlListProperty<QObject>
data READ
data DESIGNABLE
false) \
Q_CLASSINFO("DefaultProperty", "data") \
QML_NAMED_ELEMENT(QmlType) \
QML_ADDED_IN_VERSION(1, 0) \
public: \
QQmlListProperty<QObject>
data() \
{ \
return QQmlListProperty<QObject>(this, &m_objects); \
} \
void classBegin() override {} \
void componentComplete()
override {
if (!isInitialized())
initialize(); } \
private: \
QList<QObject *> m_objects; \
};
Definition at line 80 of file qwaylandquickextension.h.
◆ QT_REQUIRE_CONFIG()
QT_REQUIRE_CONFIG |
( |
wayland_compositor_quick | | ) |
|