summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitch Curtis <mitch.curtis@digia.com>2014-03-25 10:30:08 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-25 12:43:02 +0100
commit142e99b28c28d37e1369824df93b64082fee296b (patch)
treeb74b6c92dbfa1a1148b2a2ef9c658d9b7b6f5efd
parentb69eb02366ad6d8647238f4caf8edfdcaea1b526 (diff)
downloadqtquickcontrols-142e99b28c28d37e1369824df93b64082fee296b.tar.gz
Warn that use of private types requires both public and private imports
Task-number: QTBUG-37751 Change-Id: I5a91ec1dc4b38e47846e5e72e41902be876cb306 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
-rw-r--r--src/controls/plugin.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/controls/plugin.cpp b/src/controls/plugin.cpp
index 40cc38e3..dc7ee0b5 100644
--- a/src/controls/plugin.cpp
+++ b/src/controls/plugin.cpp
@@ -132,7 +132,8 @@ void QtQuickControlsPlugin::initializeEngine(QQmlEngine *engine, const char *uri
{
Q_UNUSED(uri);
- // Register private API
+ // Register private API. Note that to use these types outside of the
+ // Qt Quick Controls module, both the public and private imports must be used.
const char *private_uri = "QtQuick.Controls.Private";
qmlRegisterType<QQuickAbstractStyle>(private_uri, 1, 0, "AbstractStyle");
qmlRegisterType<QQuickCalendarModel>(private_uri, 1, 0, "CalendarModel");