Resize file dialog window before size restore

Authored by davidedmundson on Dec 14 2019, 1:03 PM.

Description

Resize file dialog window before size restore

Summary:
KDEPlatformDialogHelper explicitly resizes the window contents to the
window as part of a bug fix. This means we lose the common path where
the window resizes to the content's size hints that happens later.

If we resize the window to the size hint in advance we keep our size
hint.

(alternatively it seems to be me we can remove that old hack...but it
needs testing by people with Qt5.12)

Test Plan:
KWrite -> open

Size is 900x600, the size hint
not 640x480 the QPA default

Reviewers: Plasma, ngraham

Reviewed By: ngraham

Subscribers: ngraham, plasma-devel

Tags: Plasma

Differential Revision: https://phabricator.kde.org/D25986

Details

Committed
davidedmundsonDec 14 2019, 1:03 PM
Reviewer
ngraham
Differential Revision
D25986: Resize file dialog window before size restore
Parents
R135:a14a19c403db: Update version number for 5.17.4 GIT_SILENT
Branches
Unknown
Tags
Unknown