29 #ifndef RELATED_METAOBJECTS_NAME_CONFLICT_H
30 #define RELATED_METAOBJECTS_NAME_CONFLICT_H
34 #define DECLARE_GADGET_AND_OBJECT_CLASSES \
39 enum SomeEnum { SomeEnumValue = 0 }; \
41 class Object : public QObject{ \
45 enum SomeEnum { SomeEnumValue = 0 }; \
48 #define DECLARE_DEPENDING_CLASSES \
49 class DependingObject : public QObject \
52 Q_PROPERTY(Gadget::SomeEnum gadgetPoperty READ gadgetPoperty) \
53 Q_PROPERTY(Object::SomeEnum objectPoperty READ objectPoperty) \
55 Gadget::SomeEnum gadgetPoperty() const { return Gadget::SomeEnumValue; } \
56 Object::SomeEnum objectPoperty() const { return Object::SomeEnumValue; } \
58 struct DependingNestedGadget : public QObject \
61 Q_PROPERTY(Nested::Gadget::SomeEnum nestedGadgetPoperty READ nestedGadgetPoperty) \
62 Nested::Gadget::SomeEnum nestedGadgetPoperty() const { return Nested::Gadget::SomeEnumValue; } \
64 struct DependingNestedObject : public QObject \
67 Q_PROPERTY(Nested::Object::SomeEnum nestedObjectPoperty READ nestedObjectPoperty) \
68 Nested::Object::SomeEnum nestedObjectPoperty() const { return Nested::Object::SomeEnumValue; } \
81 namespace NestedUnsused {
95 namespace NestedUnsused {
QVector< std::pair< int, QMap< QStringList, QVariant > >> Nested