Changeset View
Changeset View
Standalone View
Standalone View
src/formeditor/widgetwithsubpropertiesinterface.cpp
Show First 20 Lines • Show All 63 Lines • ▼ Show 20 Line(s) | 62 | for (const QMetaObject *metaObject = d->subwidget->metaObject(); metaObject; | |||
---|---|---|---|---|---|
64 | QList<QMetaProperty> properties( | 64 | QList<QMetaProperty> properties( | ||
65 | KexiUtils::propertiesForMetaObjectWithInherited(metaObject)); | 65 | KexiUtils::propertiesForMetaObjectWithInherited(metaObject)); | ||
66 | foreach(const QMetaProperty &property, properties) { | 66 | foreach(const QMetaProperty &property, properties) { | ||
67 | if (-1 != thisObject->metaObject()->indexOfProperty(property.name()) | 67 | if (-1 != thisObject->metaObject()->indexOfProperty(property.name()) | ||
68 | && !addedSubproperties.contains(property.name())) | 68 | && !addedSubproperties.contains(property.name())) | ||
69 | { | 69 | { | ||
70 | d->subproperties.insert(property.name()); | 70 | d->subproperties.insert(property.name()); | ||
71 | addedSubproperties.insert(property.name()); | 71 | addedSubproperties.insert(property.name()); | ||
72 | qDebug() << "added subwidget's property that is not present in the parent: " | 72 | //qDebug() << "added subwidget's property that is not present in the parent: " | ||
73 | << property.name(); | 73 | // << property.name(); | ||
74 | } | 74 | } | ||
75 | } | 75 | } | ||
76 | } | 76 | } | ||
77 | } | 77 | } | ||
78 | } | 78 | } | ||
79 | 79 | | |||
80 | QWidget* WidgetWithSubpropertiesInterface::subwidget() const | 80 | QWidget* WidgetWithSubpropertiesInterface::subwidget() const | ||
81 | { | 81 | { | ||
Show All 32 Lines |