D12252: Enlarge default window size. Use (adjusted) calculation in `SizeHint` to determine minimum window width.

Nathaniel Graham noreply at phabricator.kde.org
Mon Apr 16 22:30:46 UTC 2018


ngraham added a comment.


  In D12252#247719 <https://phabricator.kde.org/D12252#247719>, @sharvey wrote:
  
  > I thought about that. I figured there wasn't any harm in letting the user resize the window even if it wouldn't be saved.
  
  
  User-chosen window sizes should //always// be saved. The only alternative is to make the window non-resizable in the first place.
  
  Do we want to go with the standard routine of saving the window geometry and restoring it the next time the user launches the application? I can work that in, maybe with a `firstLaunch` boolean flag that only triggers the manual setting of the window size on the very first run. The window still won't get smaller than `minimumSize`, but if someone wants to enlarge it, we could save that size and restore it in the future.
  
  All of this is already implemented and works as expected if you simply remove the `resize()` call. What needs to be done is to specify the default size without always calling `resize()`. Either that, or enforce 1024x700 as the minimum.

REPOSITORY
  R124 System Settings

REVISION DETAIL
  https://phabricator.kde.org/D12252

To: sharvey, ngraham, mart
Cc: zzag, plasma-devel, ragreen, Pitel, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20180416/fe4d19a2/attachment.html>


More information about the Plasma-devel mailing list