src/hbutils/document/hbdocumentloaderactions_p.cpp
changeset 2 06ff229162e9
parent 1 f7ac710697a9
child 6 c3690ec91ef8
--- a/src/hbutils/document/hbdocumentloaderactions_p.cpp	Mon May 03 12:48:33 2010 +0300
+++ b/src/hbutils/document/hbdocumentloaderactions_p.cpp	Fri May 14 16:09:54 2010 +0300
@@ -32,6 +32,7 @@
 
 #include <QMetaObject>
 #include <QMetaEnum>
+#include <QDebug>
 
 #include <hbanchorlayout.h>
 #include <hbstackedlayout.h>
@@ -283,7 +284,10 @@
     QVariant value;
     bool ok = variableToQVariant(variable, value);
     if (ok) {
-        current->setProperty( propertyName, value );
+        bool isQProperty = current->setProperty( propertyName, value );
+        if ( !isQProperty ) {
+            qWarning() << "DOCML warning: Dynamic property" << propertyName << "set. Property may have been removed from" << current->metaObject()->className();
+        }
     }
     return ok;
 }