Fix regression in property handling with enums from gadgets
authorSimon Hausmann <simon.hausmann@digia.com>
Mon, 23 Dec 2013 14:16:08 +0000 (15:16 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 24 Dec 2013 07:10:16 +0000 (08:10 +0100)
commit2b287c7c210ac708c0f8872e51517e0d46380ad3
tree42a127faabe1318db2ef18cfdd7dc1ffc6ab58e5
parentd776937df91e46536f404c6868d64016b6038d7b
Fix regression in property handling with enums from gadgets

When declaring a Q_PROPERTY(SomeType::SomeEnum foo ...) and SomeType is not a
QObject but a gadget, then we must still include SomeType's meta object in the
list of related meta objects.

Task-number: QTBUG-35657
Change-Id: I46195140cb5d180c4f03bb1fe06a876e3fe11267
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
src/tools/moc/generator.cpp
src/tools/moc/generator.h
src/tools/moc/moc.cpp
src/tools/moc/moc.h
tests/auto/tools/moc/moc.pro
tests/auto/tools/moc/qtbug-35657-gadget.h [new file with mode: 0644]
tests/auto/tools/moc/related-metaobjects-in-gadget.h [new file with mode: 0644]
tests/auto/tools/moc/tst_moc.cpp