Fix sizeHint for IdealToolButton

Authored by hpereiradacosta on Aug 22 2014, 2:01 PM.

Description

Fix sizeHint for IdealToolButton

As title says:
Use sizeFromContents from style rather than fixed spacing and margin, to get
the correct size hint. This is similar to what is done in QToolButton and fixes
truncated text for styles that add extra spacing (consistently with
sizeFromContents) when rendering toolbuttons (this is the case for breeze)

Note: this also removes a "FIXME" comment

REVIEW: 119898

Details

Committed
kfunkAug 22 2014, 2:13 PM
Parents
R32:95a9577be643: Make mutex nonstatic.
Branches
Unknown
Tags
Unknown