summaryrefslogtreecommitdiffstats
path: root/examples/widgets/gestures/imagegestures/main.cpp
diff options
context:
space:
mode:
authorAssam Boudjelthia <assam.boudjelthia@qt.io>2023-08-29 10:34:53 +0300
committerAssam Boudjelthia <assam.boudjelthia@qt.io>2023-08-31 22:11:51 +0000
commit381612f7944b202c8b1428f0cc9d1af72f5f7647 (patch)
tree0d56ed448f265ee7ad07a0dbe2ba97d48b4b41a8 /examples/widgets/gestures/imagegestures/main.cpp
parentb2f4e1e395bba4b72d5e1d5cc6e4469b97731a65 (diff)
Image Gestures Example: use QFileInfo for images file names
The example keeps around image file names only and append them to the selected dir path, that works fine for file scheme files, but for Android with content scheme files, that doesn't work as good because usually the paths are returned by a provider and managing them manually like appending a file name to a directory (tree) path might not work. This patch retrieves QFileInfo objects and use the absolute file paths to open any image. Pick-to: 6.6 6.5 6.2 Fixes: QTBUG-116181 Change-Id: I9911a181d92ba0452500398cbe052b9583bd79a0 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'examples/widgets/gestures/imagegestures/main.cpp')
0 files changed, 0 insertions, 0 deletions