D15450: Make sublime tool bar buttons shrinkable and elide text

Amish Naidu noreply at phabricator.kde.org
Wed Sep 12 13:23:20 BST 2018


amhndu created this revision.
Herald added a project: KDevelop.
Herald added a subscriber: kdevelop-devel.
amhndu requested review of this revision.

REVISION SUMMARY
  Change the size policy of IdealToolButton to preferred instead of the
  default to allow being shrinked by any layout.
  Instead of simply truncating text, elide text while painting.
  
  Items will be shrinked in the IdealButtonBarLayout, instead of
  overflowing or trying to use a new line.
  Geometries are calculated so that only the bigger will be contracted
  while items smaller than a relative threshold won't contract.
  Consequently, the window will no longer grow when changing from Debug to Code.
  
  Previously the layout attached to IdealButtonBarWidget was being used to add
  buttons, which for the bottom bar meant a super-layout while the
  IdealButtonBarLayout added to this super-layout was being ignored.
  
  Left Bar: https://i.imgur.com/ozslwvB.png
  Bottom Bar: https://i.imgur.com/DtmVE9R.png
  https://i.imgur.com/RpujIxM.png
  
  BUG: 384711

REPOSITORY
  R32 KDevelop

BRANCH
  buttonbar-shrink

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

AFFECTED FILES
  kdevplatform/sublime/idealbuttonbarwidget.cpp
  kdevplatform/sublime/idealbuttonbarwidget.h
  kdevplatform/sublime/ideallayout.cpp
  kdevplatform/sublime/idealtoolbutton.cpp

To: amhndu
Cc: kdevelop-devel, antismap, iodelay, vbspam, geetamc, Pilzschaf, akshaydeo, surgenight, arrowd
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20180912/ebcbda7c/attachment.html>


More information about the KDevelop-devel mailing list