Bug 426145 - ConfigModule::push(QString) mangles page path
Summary: ConfigModule::push(QString) mangles page path
Status: REPORTED
Alias: None
Product: frameworks-kdeclarative
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Marco Martin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-03 13:36 UTC by Harald Sitter
Modified: 2022-05-11 19:28 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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/.