Showing the changes to interface/src/scripting/ToolbarScriptingInterface.cpp (1 of 8 files). Show all
Unified · Split
| @@ -15,15 +15,6 @@ class QmlWrapper : public QObject { · 14 unmodified lines | ||
| 15 | 15 | public: |
| 16 | 16 | QmlWrapper(QObject* qmlObject, QObject* parent = nullptr) |
| 17 | 17 | : QObject(parent), _qmlObject(qmlObject) { |
| 18 | − | |
| 19 | − const QMetaObject *metaobject = qmlObject->metaObject(); | |
| 20 | − int count = metaobject->propertyCount(); | |
| 21 | − qDebug() << "Scanning properties for " << qmlObject; | |
| 22 | − for (int i = 0; i < count; ++i) { | |
| 23 | − QMetaProperty metaproperty = metaobject->property(i); | |
| 24 | − const char *name = metaproperty.name(); | |
| 25 | − qDebug() << "Property " << name; | |
| 26 | − } | |
| 27 | 18 | } |
| 28 | 19 | |
| 29 | 20 | Q_INVOKABLE void writeProperty(QString propertyName, QVariant propertyValue) { |