Fix saving/loading of file dialog sizes
Review Request #119512 - Created July 28, 2014 and discarded
This patch tries to fix saving/restoring file dialog sizes. Using KWindowConfig::restoreWindowSize() doesn't work here with the modal exec() methods. Instead, the patch uses the same method as KDirSelectDialog.
Current Plasma 5, working fine :)
|save|restoreWindowSize is screen size aware (ie. it maintains a different size for a 4k than for a VGA screen in ...||Thomas Lübking|
this will also hit when the window is shaded, minimized or moved to another virtual desktop (unless the compositor keeps it open for other reasons)
save|restoreWindowSize is screen size aware (ie. it maintains a different size for a 4k than for a VGA screen in use)
If the only issue is the open ::exec() TODO, you might "trick" it by calling ::winId(), then restore the size and ultimately ::exec()
Otherwise you could open an own nested eventloop instead of relying on the dialogs exec, but that'd be less elegant.
In either case I don't see why bringing your own config re/storage.