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)
Attachments
For Gerrit Dashboard: QTBUG-13404 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
600644,3 | QMenu: Honor the with for separators with text | dev | qt/qtbase | Status: MERGED | +2 | 0 |
601155,2 | QMenu: Honor the with for separators with text | 6.8 | qt/qtbase | Status: MERGED | +2 | 0 |