summaryrefslogtreecommitdiffstats
path: root/src/imports/shaders/shadereffectitem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/imports/shaders/shadereffectitem.cpp')
-rw-r--r--src/imports/shaders/shadereffectitem.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/imports/shaders/shadereffectitem.cpp b/src/imports/shaders/shadereffectitem.cpp
index ae44b312..140b576d 100644
--- a/src/imports/shaders/shadereffectitem.cpp
+++ b/src/imports/shaders/shadereffectitem.cpp
@@ -733,12 +733,12 @@ void ShaderEffectItem::setSource(const QVariant &var, int index)
source.item = 0;
if (var.isNull()) {
return;
- } else if (!qVariantCanConvert<QObject *>(var)) {
+ } else if (!var.canConvert<QObject *>()) {
qWarning("Could not assign source of type '%s' to property '%s'.", var.typeName(), source.name.constData());
return;
}
- QObject *obj = qVariantValue<QObject *>(var);
+ QObject *obj = var.value<QObject *>();
source.source = qobject_cast<ShaderEffectSource *>(obj);
source.item = qobject_cast<QDeclarativeItem *>(obj);