diff options
| author | Gabriel de Dietrich <gabriel.dedietrich@digia.com> | 2013-05-28 16:50:49 +0200 |
|---|---|---|
| committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-05-29 12:36:33 +0200 |
| commit | a48849649e9d534449f6feb685dbb708f354d270 (patch) | |
| tree | 35076a42a41f08c972eb221a5eee6bef98f350a0 /src/controls/qquickmenuitem.cpp | |
| parent | c6389d78fc51fb404043848f5d7da2d4e3e19599 (diff) | |
MenuItem: Connect to own action's 'shortcutChanged' signal
Otherwise, we won't be setting the shortcut on the platform item.
Task-number: QTBUG-31368
Change-Id: I333b903719d6e95a411f4f423c0e9b8ce15e640e
Reviewed-by: J-P Nurmi <jpnurmi@digia.com>
Diffstat (limited to 'src/controls/qquickmenuitem.cpp')
| -rw-r--r-- | src/controls/qquickmenuitem.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/controls/qquickmenuitem.cpp b/src/controls/qquickmenuitem.cpp index 4ac7c7ff8..de215df19 100644 --- a/src/controls/qquickmenuitem.cpp +++ b/src/controls/qquickmenuitem.cpp @@ -401,6 +401,7 @@ QQuickMenuItem::QQuickMenuItem(QObject *parent) { connect(this, SIGNAL(__textChanged()), this, SIGNAL(textChanged())); + connect(action(), SIGNAL(shortcutChanged(QString)), this, SLOT(updateShortcut())); connect(action(), SIGNAL(triggered()), this, SIGNAL(triggered())); connect(action(), SIGNAL(toggled(bool)), this, SLOT(updateChecked())); if (platformItem()) |
