D13582: ScrollBar overlay theme aware.

Tomaz Canabrava noreply at phabricator.kde.org
Mon Jun 18 14:34:31 UTC 2018


tcanabrava added a comment.


  In D13582#279540 <https://phabricator.kde.org/D13582#279540>, @ngraham wrote:
  
  > In D13582#279371 <https://phabricator.kde.org/D13582#279371>, @tcanabrava wrote:
  >
  > > I don't know how that will work out Layout wise. When we have the scrollbar as overlay we ignore the Layout (konsole manually set's the position of the scrollbar above the drawarea of the widget for instance)
  > >  I have no clue on how that's supposed to work
  >
  >
  > Without being so familiar with how it would work technically, it seems like if we did this, then for Breeze with the setting checked, it would just draw the scrollbar overlay-style, whereas for other themes or for Breeze with the setting unchecked, it would draw the scrollbar "normally".
  >
  > Is that not possible?
  
  
  I don't know how technically that would work. the QLayout asks for the sizeHint() of the widget to adapt it's space (so for breeze we would need to return 0 as sizeHint() ) - but I *think* this is also what's used for the paintEvent to paint it. I'm currently hacking breeze style to see if I can do that.

REPOSITORY
  R319 Konsole

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

To: tcanabrava, #konsole, hindenburg, ngraham
Cc: zzag, konsole-devel, herrold, ngraham, maximilianocuria, hindenburg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/konsole-devel/attachments/20180618/cd3e7341/attachment.html>


More information about the konsole-devel mailing list