Uploaded image for project: 'Qt Solutions'
  1. Qt Solutions
  2. QTSOLBUG-121

In qtwindowlistmenu.cpp - setting the shortcut "Ctrl+F4" on the close action makes it unavailable

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • Release 7
    • Window Menu
    • None

    Description

      In QtWindowListMenu::QtWindowListMenu(QWidget *parent) we have the following code:
      ...
      QAction *act = new QAction(tr("Cl&ose"), stdGroup);
      act->setShortcut(tr("Ctrl+F4"));
      act->setStatusTip(tr("Close the active window"));
      ...

      The problem is that the shortcut Ctrl+F4 is already implemented with the mdiArea. So by setting the act->setShortcut(tr("Ctrl+F4")), this shortcut is redundant and becomes ambiguous.

      When using the shortcut, it does not work and the user gets the warning:
      QAction::eventFilter: Ambiguous shortcut overload: Ctrl+F4

      This line needs to be removed. The updated file and git patch candidate are included.

      Attachments

        1. patch_2.2.1.txt
          0.9 kB
          Nokia Qt Support
        2. qtwindowlistmenu.cpp
          14 kB
          Nokia Qt Support
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            sanonymous Nokia Qt Support (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes