Manually resize KCMUtilDialog to sizeHint()

Authored by valeriymalov on Sep 10 2018, 2:39 PM.

Description

Manually resize KCMUtilDialog to sizeHint()

Summary:
Workaround for https://bugreports.qt.io/browse/QTBUG-3459

Currently adjustSize() is limited to 2/3 of the screen size for windows
This adds unnecessary scrollbars on dialogs that would otherwise fit the
screen
Manually resize the window after adjustSize() happens to avoid this
limitation

CCBUG: 389585

Test Plan:
Tested on a 1366x768 laptop, with this patch networkmanagement window opens
in full screen height (respecting the panel)

Reviewers: Frameworks, ngraham

Reviewed By: ngraham

Subscribers: davidedmundson, acrouthamel, kde-frameworks-devel

Tags: Frameworks

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

Details

Committed
valeriymalovSep 12 2018, 2:20 AM
Reviewer
ngraham
Differential Revision
D15406: Manually resize KCMUtilDialog to sizeHint()
Parents
R295:7e0dd2951b9a: GIT_SILENT Upgrade KF5 version to 5.51.0.
Branches
Unknown
Tags
Unknown