diff options
author | André Klitzing <aklitzing@gmail.com> | 2016-01-13 15:20:37 +0100 |
---|---|---|
committer | André Klitzing <aklitzing@gmail.com> | 2016-01-15 13:30:37 +0000 |
commit | 5ef14c52d0275e721153b15acfb0410b9889014a (patch) | |
tree | b46ad1aefee6d62a2d5ca54cdb4ee5a331da751f /tests/manual/qopenglwidget/openglwidget/main.cpp | |
parent | 434302eae1a0c5d3016fe07c7d343bdbad118a8a (diff) |
Fix QFileSelector::select if called with QUrl and scheme "assets"
QFileSelector::select(QUrl) will use ":" for scheme "qrc" to
call QFileSelector::select(QString). Scheme "assets" needs
to remain "assets:" for select(QString), otherwise it won't
recognize the file in "assets".
Following failed because it was passed as ":/qml/example.qml"
to select(QString):
select(QUrl("assets:/qml/example.qml"));
This will call select(QString) to:
select("assets:/qml/example.qml");
Change-Id: I6bdeed6bb67992498ae3b8e1273c20e70049381a
Task-number: QTBUG-50435
Reviewed-by: BogDan Vatra <bogdan@kdab.com>
Diffstat (limited to 'tests/manual/qopenglwidget/openglwidget/main.cpp')
0 files changed, 0 insertions, 0 deletions