Compilation failes with In file included from shared/pluginmanager.cpp:34:0: shared/pluginmanager_p.h:101:1: error: expected class-name before ‘{’ token { ^ shared/pluginmanager_p.h:102:5: error: ‘Q_OBJECT’ does not name a type Q_OBJECT ^ shared/pluginmanager_p.h:111:5: error: ‘QObject’ does not name a type QObject *instance(const QString &plugin) const; ^ shared/pluginmanager_p.h:126:5: error: ‘QObjectList’ does not name a type QObjectList instances() const; ^ shared/pluginmanager_p.h:128:5: error: ‘CustomWidgetList’ does not name a type CustomWidgetList registeredCustomWidgets() const; ^ shared/pluginmanager_p.h:134:8: error: expected ‘:’ before ‘slots’ public slots: ^ shared/pluginmanager_p.h:134:8: error: ‘slots’ does not name a type shared/pluginmanager.cpp: In function ‘QString msgXmlError(const QString&, const QString&)’: shared/pluginmanager.cpp:263:12: error: ‘tr’ is not a member of ‘QDesignerPluginManager’ return QDesignerPluginManager::tr("An XML error was encountered when parsing the XML of the custom widget %1: %2").arg(name, errorMessage); ^ shared/pluginmanager.cpp: In function ‘QString msgAttributeMissing(const QString&)’: shared/pluginmanager.cpp:268:12: error: ‘tr’ is not a member of ‘QDesignerPluginManager’ return QDesignerPluginManager::tr("A required attribute ('%1') is missing.").arg(name); ^ shared/pluginmanager.cpp: In function ‘bool parsePropertySpecs(QXmlStreamReader&, QDesignerCustomWidgetSharedData::StringPropertyTypeMap*, QString*)’: shared/pluginmanager.cpp:306:33: error: ‘tr’ is not a member of ‘QDesignerPluginManager’ *errorMessage = QDesignerPluginManager::tr("An invalid property specification ('%1') was encountered. Supported types: %2").arg(sr.name().toString(), stringPropertySpec); ^ shared/pluginmanager.cpp:326:33: error: ‘tr’ is not a member of ‘QDesignerPluginManager’ *errorMessage = QDesignerPluginManager::tr("'%1' is not a valid string property specification.").arg(type); ^ shared/pluginmanager.cpp: In member function ‘QDesignerCustomWidgetData::ParseResult QDesignerCustomWidgetData::parseXml(const QString&, const QString&, QString*)’: shared/pluginmanager.cpp:366:29: error: ‘tr’ is not a member of ‘QDesignerPluginManager’ *errorMessage = QDesignerPluginManager::tr("The XML of the custom widget %1 does not contain any of the elements <widget> or <ui>.").arg(name); ^ shared/pluginmanager.cpp:378:33: error: ‘tr’ is not a member of ‘QDesignerPluginManager’ *errorMessage = QDesignerPluginManager::tr("The class attribute for the class %1 is missing.").arg(name); ^ shared/pluginmanager.cpp:382:37: error: ‘tr’ is not a member of ‘QDesignerPluginManager’ *errorMessage = QDesignerPluginManager::tr("The class attribute for the class %1 does not match the class name %2.").arg(data.xmlClassName, name); ^ shared/pluginmanager.cpp: In constructor ‘QDesignerPluginManager::QDesignerPluginManager(QDesignerFormEditorInterface*)’: shared/pluginmanager.cpp:546:5: error: type ‘QObject’ is not a direct base of ‘QDesignerPluginManager’ QObject(core), ^ shared/pluginmanager.cpp: In destructor ‘virtual QDesignerPluginManager::~QDesignerPluginManager()’: shared/pluginmanager.cpp:562:18: error: ‘syncSettings’ was not declared in this scope syncSettings(); ^ shared/pluginmanager.cpp: At global scope: shared/pluginmanager.cpp:639:66: error: no ‘QObject* QDesignerPluginManager::instance(const QString&) const’ member function declared in class ‘QDesignerPluginManager’ QObject *QDesignerPluginManager::instance(const QString &plugin) const ^ shared/pluginmanager.cpp:708:43: error: no ‘bool QDesignerPluginManager::syncSettings()’ member function declared in class ‘QDesignerPluginManager’ bool QDesignerPluginManager::syncSettings() ^ shared/pluginmanager.cpp: In member function ‘void QDesignerPluginManager::ensureInitialized()’: shared/pluginmanager.cpp:736:41: error: ‘instance’ was not declared in this scope if (QObject *o = instance(plugin)) ^ shared/pluginmanager.cpp: At global scope: shared/pluginmanager.cpp:742:25: error: ‘CustomWidgetList’ in ‘class QDesignerPluginManager’ does not name a type QDesignerPluginManager::CustomWidgetList QDesignerPluginManager::registeredCustomWidgets() const ^ shared/pluginmanager.cpp:765:49: error: no ‘QObjectList QDesignerPluginManager::instances() const’ member function declared in class ‘QDesignerPluginManager’ QObjectList QDesignerPluginManager::instances() const ^ shared/pluginmanager.cpp: In function ‘QString msgAttributeMissing(const QString&)’: shared/pluginmanager.cpp:269:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ shared/pluginmanager.cpp: In function ‘QString msgXmlError(const QString&, const QString&)’: shared/pluginmanager.cpp:264:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ Upstream commit which adds the missing includes: https://github.com/qtproject/qttools/commit/376501ae5a86859821c0e89b2e8fbc9906d11e07 Reproducible: Always
Created attachment 424058 [details] build.log
Created attachment 424060 [details] emerge --info
*** This bug has been marked as a duplicate of bug 566580 ***