diff options
author | Thomas Hartmann <Thomas.Hartmann@digia.com> | 2013-04-23 09:25:29 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-04-23 12:53:48 +0200 |
commit | 88e215b6d56b406d994f97a0adbd2a6afff655be (patch) | |
tree | 796d4036a5b32eb72c39b14ff83c320a41d99ec4 /src/qml/qml/qqmlcomponentattached_p.h | |
parent | 7167ebd3012147b41a447a6b0bbecc64b6017bd4 (diff) |
Adding emitComponentCompleteSignalForAttachedProperty()
Each item that is created by a component gets the
attached property "Component".
This property has the signal onCompleted.
This function allows the designer to manually emit this
signal once the item is setup.
I had to export QQmlComponentAttached for this.
Change-Id: I45b4e72af4f12cdcda29f165cc9bc4d9dee8faf7
Reviewed-by: Marco Bubke <marco.bubke@digia.com>
Diffstat (limited to 'src/qml/qml/qqmlcomponentattached_p.h')
-rw-r--r-- | src/qml/qml/qqmlcomponentattached_p.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlcomponentattached_p.h b/src/qml/qml/qqmlcomponentattached_p.h index 3c27e795c6..ae416dcb1c 100644 --- a/src/qml/qml/qqmlcomponentattached_p.h +++ b/src/qml/qml/qqmlcomponentattached_p.h @@ -43,12 +43,13 @@ #define QQMLCOMPONENTATTACHED_P_H #include <QtQml/qqml.h> +#include <private/qtqmlglobal_p.h> #include <QtCore/QObject> QT_BEGIN_NAMESPACE -class Q_AUTOTEST_EXPORT QQmlComponentAttached : public QObject +class Q_QML_PRIVATE_EXPORT QQmlComponentAttached : public QObject { Q_OBJECT public: |