diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2019-01-02 09:38:14 +0100 |
---|---|---|
committer | Paul Lemire <paul.lemire@kdab.com> | 2019-01-03 08:42:27 +0000 |
commit | f8483f866267db71ef338ee1600074896c9534b3 (patch) | |
tree | b8facb541c7b53c35e35f38c110857da71d7dd8a | |
parent | 4dbc8ff19c44377af9d9af152aded147a6cb536b (diff) |
Fix sourceComponent property of EntityLoader
Add the accessor to the property macro, fixing warning:
Property declaration sourceComponent has no READ accessor function or associated MEMBER variable. The property will be invalid.
Amends 4030e1796ca10c0eeab4fcb6cc6000b5bdb08028.
Change-Id: Icc5048d34ecae4f7d0648002727362eaa97614a8
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
-rw-r--r-- | src/quick3d/quick3d/items/quick3dentityloader_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick3d/quick3d/items/quick3dentityloader_p.h b/src/quick3d/quick3d/items/quick3dentityloader_p.h index beb72ba79..611d86cb2 100644 --- a/src/quick3d/quick3d/items/quick3dentityloader_p.h +++ b/src/quick3d/quick3d/items/quick3dentityloader_p.h @@ -76,7 +76,7 @@ class QT3DQUICKSHARED_PRIVATE_EXPORT Quick3DEntityLoader : public QEntity Q_PROPERTY(QObject *entity READ entity NOTIFY entityChanged) Q_PROPERTY(QUrl source READ source WRITE setSource NOTIFY sourceChanged) Q_PROPERTY(Status status READ status NOTIFY statusChanged) - Q_PROPERTY(QQmlComponent *sourceComponent WRITE setSourceComponent NOTIFY sourceComponentChanged REVISION 12) + Q_PROPERTY(QQmlComponent *sourceComponent READ sourceComponent WRITE setSourceComponent NOTIFY sourceComponentChanged REVISION 12) public: enum Status { Null = 0, |