KDirSelectDialog: Fix layout sizing issues
The directory picker got a bit of love by fixing some usability issues that were bothering me, and for minor consistency with the load/save file dialog.
Fixes:
- Bug 421247 - Fixes the sidebar width, so it can go smaller.
- Bug 500435 - Add state config so the sidebar width is remembered.
Improves:
-
Bug 499179 - Improve the layout and enforce a minimum window size to prevent it visually breaking.
- I can't consider it fixed, as it could still rarely happen, depending on the initial state (dimensions?).
- If
QSplitter
became aQDockWidget
(like kio/KFileWidget), that might fix that bug.- I had a couple of attempts, but I'm not confident to make that change right now.
Changes were applied to Qt 5 and Qt 6 versions. Only the Qt 6 version was tested.
A quick way to test is kdialog --getexistingdirectory
BUG: 421247
BUG: 500435
Edited by Luke Horwell