Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-8186

Tear-off menus aren't sized correctly

    XMLWordPrintable

Details

    Description

      When a menu is torn-off, the menu items are using too much space for the text which causes the shortcut to be beyond the window's rectangle. Compare attached images of a torn-off menu.

      The change which appears to have caused this behavior is:

      commit baf3ec81ca5d5cd38b54dc853c12109956a98cb9
      Author: Thierry Bastian <thierry.bastian@nokia.com>
      Date: Tue Aug 4 11:16:01 2009 +0200

      QMenu now takes minimum width into account for the action rects

      The action now try to take advantage of the space given by a minimum
      width. Patch proposed initially by Aron Seigo and improved later on.

      Reviewed-by: Trustme

      src/gui/widgets/qmenu.cpp | 11 ++++++-----
      tests/auto/qmenu/tst_qmenu.cpp | 12 ++++++++++++
      2 files changed, 18 insertions, 5 deletions

      The parent commit (549736341a2268e33159949e076e0629abeb838a) does not appear to have the problem.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            jasmcdon Jason McDonald (Closed Nokia Identity. Please assign to "macadder" instead) (Inactive)
            baysmith Bradley Smith
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes