From 1a1ce4326c55f0af9acb3d3b42d70040bbe45673 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Tue, 9 Apr 2013 12:54:09 +0200 Subject: DesignerSupport: Adding separate flag for component completion The designer should only disable completion of components if the component is created directly by the designer. Change-Id: Id86d2b2f2e61355240bdbbb7875db3e97fb0da17 Reviewed-by: Marco Bubke --- src/quick/designer/designersupport.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/quick/designer/designersupport.h') diff --git a/src/quick/designer/designersupport.h b/src/quick/designer/designersupport.h index c93cffa7fa..4567e5c3d8 100644 --- a/src/quick/designer/designersupport.h +++ b/src/quick/designer/designersupport.h @@ -145,6 +145,9 @@ public: static void activateDesignerWindowManager(); static void activateDesignerMode(); + static void disableComponentComplete(); + static void enableComponentComplete(); + static void createOpenGLContext(QQuickWindow *window); static void polishItems(QQuickWindow *window); -- cgit v1.2.3 From 88e215b6d56b406d994f97a0adbd2a6afff655be Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Tue, 23 Apr 2013 09:25:29 +0200 Subject: 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 --- src/quick/designer/designersupport.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/quick/designer/designersupport.h') diff --git a/src/quick/designer/designersupport.h b/src/quick/designer/designersupport.h index 4567e5c3d8..5139a65645 100644 --- a/src/quick/designer/designersupport.h +++ b/src/quick/designer/designersupport.h @@ -125,6 +125,7 @@ public: static QQuickItem *anchorCenterInTargetItem(QQuickItem *item); static QPair anchorLineTarget(QQuickItem *item, const QString &name, QQmlContext *context); static void resetAnchor(QQuickItem *item, const QString &name); + static void emitComponentCompleteSignalForAttachedProperty(QQuickItem *item); static QList statesForItem(QQuickItem *item); -- cgit v1.2.3