Bug 426145

Summary: ConfigModule::push(QString) mangles page path
Product: [Frameworks and Libraries] frameworks-kdeclarative Reporter: Harald Sitter <sitter>
Component: generalAssignee: Marco Martin <notmart>
Status: REPORTED ---    
Severity: normal CC: a.samirh78, kde, kdelibs-bugs-null
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Harald Sitter 2020-09-03 13:36:59 UTC
It internally does:
QUrl::fromLocalFile(package.filePath("ui", fileName))

Which is neither documented nor particularly reasonable because one could opt to not have a ui subdir at all.

I'd deprecate it and make a new push2() which doesn't fiddle with the path at all so callers have to explicitly pass in ui/foo.qml if foo is in ui/.