Details
-
Bug
-
Resolution: Out of scope
-
P2: Important
-
4.4.0
-
None
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();
}