summaryrefslogtreecommitdiffstats
path: root/examples/embedded
diff options
context:
space:
mode:
authorAssam Boudjelthia <assam.boudjelthia@qt.io>2020-02-17 16:13:15 +0200
committerAssam Boudjelthia <assam.boudjelthia@qt.io>2020-02-19 14:28:00 +0200
commit1576f81baa8a1c992a005397edfc5d6f9e1b44c1 (patch)
tree8d310d200cf01b28021d78896038b3a89e38db6a /examples/embedded
parent3dd5caaaec7c4c0d209b0327b647bfb5d46ac001 (diff)
Android: QFileDialog check isLocalFile() with static functions
The functions below try to return the selected QUrl string with toLocalFile(), however in case of Android "content" Uri isLocalFile() is false, thus we end up with empty path. This checks is QUrl isLocalFile() otherwise return QUrl::toString(). * QString QFileDialog::getSaveFileName() * QString QFileDialog::getOpenFileName() * QStringList QFileDialog::getOpenFileNames() * QString QFileDialog::getExistingDirectory() Change-Id: If7eefb3a067d4bd09849807e60554e0ded507f19 Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
Diffstat (limited to 'examples/embedded')
0 files changed, 0 insertions, 0 deletions