It should be a moc error for the specified file to not exist.

Currently the missing file is ignored and plugin data is created anyway.

Change-Id: I118fd57b7d05a135e3ff58c0298b25e67cd12587
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
This commit is contained in:
Stephen Kelly 2012-06-13 19:31:18 +02:00 committed by Qt by Nokia
parent 6da6845f07
commit 6649171ddc

View File

@ -1107,7 +1107,7 @@ void Moc::parsePluginData(ClassDef *def)
msg += "Plugin Metadata file "; msg += "Plugin Metadata file ";
msg += lexem(); msg += lexem();
msg += " does not exist. Declaration will be ignored"; msg += " does not exist. Declaration will be ignored";
warning(msg.constData()); error(msg.constData());
return; return;
} }
QFile file(fi.canonicalFilePath()); QFile file(fi.canonicalFilePath());