D28678: adjust smb kcm size to be sufficient vis a vis headers

Harald Sitter noreply at phabricator.kde.org
Wed Apr 8 13:22:13 BST 2020


sitter created this revision.
sitter added a reviewer: ngraham.
Herald added a project: Plasma.
Herald added a subscriber: plasma-devel.
sitter requested review of this revision.

REVISION SUMMARY
  we use Stretch to get a somewhat uniform appearance between the two views
  but Stretch is bit meh when it comes to actual sizing as it acts kind of
  like QSizePolicy::Preferred in that it allows shrinking columns so small
  that even the header gets cut off. this of course looks silly, so we
  now set the largest required width as minimal section width. this prevents
  the user from cutting off headers by resizing the window.
  
  secondly, and entirely related to that, because KCMs are embedded into
  a scrollview their sizehint kinda doesn't make any difference for
  the window size which then combined with the aforementioned stretch problem
  can lead to cut off headers by default as the window size is too small
  making the stretch cut into header text.
  to ensure the default size is reasonable let the view adjust to content
  on first show, effectively making the window as large as needed
  regardless of implicit hints.
  
  BUG: 419786
  FIXED-IN: 5.18.5

TEST PLAN
  - empty dialog
  - dialog with only shares
  - dialog with shares and mounts

REPOSITORY
  R102 KInfoCenter

BRANCH
  Plasma/5.18

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

AFFECTED FILES
  Modules/samba/main.cpp

To: sitter, ngraham
Cc: plasma-devel, Orage, LeGast00n, The-Feren-OS-Dev, cblack, jraleigh, zachus, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, ahiemstra, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20200408/1c33b1cc/attachment-0001.html>


More information about the Plasma-devel mailing list