qt5base-lts/tests/auto/tools/moc
Gabriel de Dietrich e18f4bca28 moc: Don't link to inexistent parent staticMetaObject
Contrarily to Q_OBJECTs, Q_GADGETs are not guaranteed to
descend from a Q_GADGET. Here, we ensure that if the first
superclass is a Q_GADGET, then the derived class will be
treated as one. This allows gaps in the Q_GADGET hierarchy
while preventing from trying to link to the inexistent
staticMetaObject if there's no such ancestor.

Change-Id: If10fb952e23655102a425bb18fe8babaf447a47f
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@theqtcompany.com>
2015-01-13 11:25:53 +01:00
..
task71021 Moved autotests in category 'tools' into new directory structure 2011-09-12 10:08:29 +02:00
Test.framework/Headers Update license headers and add new license files 2014-09-24 12:26:19 +02:00
testproject Update license headers and add new license files 2014-09-24 12:26:19 +02:00
.gitattributes Moved autotests in category 'tools' into new directory structure 2011-09-12 10:08:29 +02:00
.gitignore Moved autotests in category 'tools' into new directory structure 2011-09-12 10:08:29 +02:00
assign-namespace.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
backslash-newlines.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
c-comments.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
cstyle-enums.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
cxx11-enums.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
cxx11-explicit-override-control.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
cxx11-final-classes.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
dir-in-include-path.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
dollars.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
error-on-wrong-notify.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
escapes-in-string-literals.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
extraqualification.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
forgotten-qinterface.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
forward-declared-param.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
function-with-attributes.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
gadgetwithnoenums.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
grand-parent-gadget-class.h moc: Don't link to inexistent parent staticMetaObject 2015-01-13 11:25:53 +01:00
Header Moved autotests in category 'tools' into new directory structure 2011-09-12 10:08:29 +02:00
interface-from-framework.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
interface-from-include.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
macro-on-cmdline.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
moc.pro moc: Don't link to inexistent parent staticMetaObject 2015-01-13 11:25:53 +01:00
namespaced-flags.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
no-keywords.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
non-gadget-parent-class.h moc: Don't link to inexistent parent staticMetaObject 2015-01-13 11:25:53 +01:00
oldstyle-casts.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
os9-newlines.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
parse-boost.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
parse-defines.h moc: do not error if the last token of a define is # 2014-10-28 19:37:10 +01:00
plugin_metadata.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
pp-dollar-signs.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
pure-virtual-signals.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qinvokable.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qprivateslots.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qtbug-35657-gadget.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
related-metaobjects-in-gadget.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
related-metaobjects-in-namespaces.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
related-metaobjects-name-conflict.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
single_function_keyword.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
single-quote-digit-separator-n3781.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
slots-with-void-template.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
task87883.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
task189996.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
task192552.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
task234909.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
task240368.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
template-gtgt.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
trigraphs.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
tst_moc.cpp moc: Don't link to inexistent parent staticMetaObject 2015-01-13 11:25:53 +01:00
unterminated-function-macro.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
using-namespaces.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
warn-on-multiple-qobject-subclasses.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
warn-on-property-without-read.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
win-newlines.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00