aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Hartmann <Thomas.Hartmann@theqtcompany.com>2015-11-20 13:23:02 +0100
committerThomas Hartmann <Thomas.Hartmann@theqtcompany.com>2015-11-20 12:36:11 +0000
commit7f1a13ebbb28db7d2a2694967185c4b80dd31f0d (patch)
tree55c526f5ab64cb8f5a5bc2a0fc20b70310ec2a3c
parentaa9623525864fb17a50e0d4f968fe074a6084d4a (diff)
Fixing compilation with -no-rtti
DesignerSupport should not keep users from compiling with -no-rtti. Next step is to move DesignerSupport into a library and only build it on desktop platforms. Task-number: QTBUG-49154 Change-Id: Ie0037f3371c24da56f34f27b1f39e8c318e41451 Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
-rw-r--r--src/quick/designer/qquickdesignercustomobjectdata.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/quick/designer/qquickdesignercustomobjectdata.cpp b/src/quick/designer/qquickdesignercustomobjectdata.cpp
index 1666ffb0a5..7f074d8341 100644
--- a/src/quick/designer/qquickdesignercustomobjectdata.cpp
+++ b/src/quick/designer/qquickdesignercustomobjectdata.cpp
@@ -181,7 +181,11 @@ void QQuickDesignerCustomObjectData::doResetProperty(QQmlContext *context, const
if (hasValidResetBinding(propertyName)) {
QQmlAbstractBinding *binding = getResetBinding(propertyName);
+#if defined(QT_NO_DYNAMIC_CAST)
+ QQmlBinding *qmlBinding = static_cast<QQmlBinding*>(binding);
+#else
QQmlBinding *qmlBinding = dynamic_cast<QQmlBinding*>(binding);
+#endif
if (qmlBinding)
qmlBinding->setTarget(property);
QQmlPropertyPrivate::setBinding(binding, QQmlPropertyPrivate::None, QQmlPropertyPrivate::DontRemoveBinding);