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

When a QAction has a shortcut and also has a submenu attached then the space between the shortcut and arrow is too small

    XMLWordPrintable

Details

    Description

      When a QAction has a shortcut and also has a submenu attached then the space between the shortcut and arrow is too small.

      Test case main.cpp to reproduce:
      =================================
      #include <QtGui>

      int main(int argc, char **argv)
      {
      QApplication a(argc, argv);
      QMainWindow mw;
      QMenu *m = mw.menuBar()->addMenu("Foo");
      QMenu *sub = m->addMenu("Bar");
      sub->menuAction()->setShortcut(QKeySequence(Qt::CTRL+Qt::Key_Z));
      mw.show();
      return a.exec();
      }

      Attachments

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

        Activity

          People

            bjnilsen Bjørn Erik Nilsen
            anshaw Andy Shaw (closed Nokia identity) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes