aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/designer/qquickdesignersupportmetainfo_p.h
diff options
context:
space:
mode:
authorThomas Hartmann <Thomas.Hartmann@theqtcompany.com>2016-09-28 16:52:53 +0200
committerThomas Hartmann <Thomas.Hartmann@theqtcompany.com>2016-10-05 07:49:38 +0000
commit54765de17916948ef56a3fd1111e8c765c07155a (patch)
tree333973d100009a70b79daf1a753720e42a209748 /src/quick/designer/qquickdesignersupportmetainfo_p.h
parentc6d66f2e88b42079df9c21c10cf8922871932a32 (diff)
Adding QQuickDesignerSupportMetaInfo::registerMockupObject()
This allows Qt Quick Designer to register a component with a custom parser that can serve as a mockup for known C++ components registered in e.g. main.cpp. In many cases those components are the interface to the C++ backend. While the C++ components itself are not relevant for the gui designer, the user has to be able to instantiate gui components that use such C++ components. Therefore we create mockup components with a custom parser, so all property assignments are accepted. Change-Id: I9c25752b0a5f11c2613346ffbbfd10e3b6eb3a6f Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
Diffstat (limited to 'src/quick/designer/qquickdesignersupportmetainfo_p.h')
-rw-r--r--src/quick/designer/qquickdesignersupportmetainfo_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/quick/designer/qquickdesignersupportmetainfo_p.h b/src/quick/designer/qquickdesignersupportmetainfo_p.h
index 43cd8e8fb1..344d720d98 100644
--- a/src/quick/designer/qquickdesignersupportmetainfo_p.h
+++ b/src/quick/designer/qquickdesignersupportmetainfo_p.h
@@ -63,6 +63,7 @@ class Q_QUICK_EXPORT QQuickDesignerSupportMetaInfo
public:
static bool isSubclassOf(QObject *object, const QByteArray &superTypeName);
static void registerNotifyPropertyChangeCallBack(void (*callback)(QObject *, const QQuickDesignerSupport::PropertyName &));
+ static void registerMockupObject(const char *uri, int versionMajor, int versionMinor, const char *qmlName);
};
QT_END_NAMESPACE