https://bugs.kde.org/show_bug.cgi?id=510091
Bug ID: 510091
Summary: [KConfig Compiler] Incorrect forward declaration of
QQmlEngine and QJSEngine inside namespace.
Classification: Frameworks and Libraries
Product: frameworks-kconfig
Version First 6.18.0
Reported In:
Platform: Arch Linux
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Target Milestone: ---
When using KConfig Compiler with NameSpace and QmlRegistration options enabled,
the forward declaration of QQmlEngine and QJSEngine are placed inside the
namespace. If the Singleton option is enabled, the final code fails to compile.
Specifically, these line in the generated source code:
```
using namespace NameSpace;
// ...
Config *Config::create(QQmlEngine *, QJSEngine *)
{
// Error: Incomplete type 'Namespace::QQmlEngine' named in nested name
specifier
QQmlEngine::setObjectOwnership(self(), QQmlEngine::CppOwnership);
return self();
}
```
--
You are receiving this mail because:
You are watching all bug changes.