Improve file dialogs behavior


Set the different file dialogs current folders either based on open
project path (e.g. Save as), default resources location (e.g. empty
images) or currently selected file (e.g. image properties). Some helper
methods for file handling.

Task-number: QTBUG-109625
Pick-to: 6.5
Change-Id: I073ceed76a4bffdc152a9430ac9e7939090c4952
Reviewed-by: Amr Elsayed <amr.elsayed@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
commitd55714af5502f78abde2a7403ed0d05f30ed6ab0
parent5f12ac47850cb5bd9d0b94f482efe2a8e23b407e
authorKaj Grönholm <kaj.gronholm@qt.io>
committerKaj Grönholm <kaj.gronholm@qt.io>
commit timeTue, 3 Jan 2023 12:59:41 +0200