Bug 398793

Summary: "Per activity Power Management" KCM window is too small
Product: [Applications] systemsettings Reporter: Patrick Silva <bugseforuns>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: freek, nate
Priority: NOR    
Version: 5.15.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=389585
Latest Commit: Version Fixed In: 5.16.0
Sentry Crash Report:
Attachments: screenshot

Description Patrick Silva 2018-09-18 12:21:53 UTC
Created attachment 115067 [details]
screenshot

Search for "Per activity Power Management" in the apps launcher and open it.
Window is too small as you can see in the screenshot.
Comment 1 Nate Graham 2018-09-18 21:23:06 UTC
Not a QML KCM, so probably its sizeHint is too low.
Comment 2 Nate Graham 2018-09-18 21:24:25 UTC
*** Bug 379858 has been marked as a duplicate of this bug. ***
Comment 3 Nate Graham 2019-03-30 19:25:12 UTC
Git commit 806c4c073ff4fa40924db692981963895f4562b8 by Nate Graham, on behalf of Tigran Gabrielyan.
Committed on 30/03/2019 at 19:25.
Pushed by ngraham into branch 'master'.

Fixed initial size and content width of Activity Settings KCM

Summary:
Tab contents are added when KActivities::Consumer::serviceStatusChanged signal is fired which happens after the layout is set. This causes the window to be too small initially so a minimumSize is set manually.

This change also adjusts the column span to 2 for rows with a single checkbox. The contents of third column would be pushed outside the scroll area on rows where column 1 is the label and column 2 are the controls since the width of checkboxes in column 1 is too wide.
FIXED-IN: 5.16.0

Reviewers: #plasma, broulik, ngraham

Reviewed By: ngraham

Subscribers: ngraham, broulik, plasma-devel

Tags: #plasma

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

M  +4    -1    kcmodule/activities/activitypage.cpp
M  +3    -5    kcmodule/common/actionconfigwidget.cpp

https://commits.kde.org/powerdevil/806c4c073ff4fa40924db692981963895f4562b8