Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.6.3, 5.9.7, 5.12.0 RC2
-
None
Description
This problem exists since Qt 4. Qt 3 was ok.
I have a toolbar with one visible button/action and some invisible separators or invisible buttons/actions. The minimum size is too high, because the size of the extension is added. I think, that the space for the extension should only be added, when more than one item is visible.
see QToolBarLayout::updateGeomArray
This condition:
if (items.count() > 1)
rpick(o, that->minSize) += spacing + extensionExtent;
Should be:
if (count > 1)
...
count is the number of visible items. The number of invisible items doesn't matter.