Details
-
Bug
-
Resolution: Fixed
-
P4: Low
-
4.6.3, 5.4.0
-
None
-
Linux
-
e45d78ecb (dev), 5d5f51d3e (6.8)
Description
To reproduce:
Add one item and one separator to a QMenu
Make the text of the separator longer than the text of the normal item.
Result:
the width of the QMenu is not sufficient, the text of the separator is clipped.
----------------------------
Long long long lon- |
Short menu item |
----------------------------
Add another qmenu item with the same (long) text as the separator.
Result:
now the width is calculated properly.
---------------------------------------------
Long long long long long text |
Long long long long long text ---- |
Short menu item |
---------------------------------------------
Qt-4.6.3
qmenu.cpp
306 //calc what I think the size is..
307 if (action->isSeparator())
else {
(same thing in Qt-4.7.0-rc1)