diff options
author | Markku Luukkainen <markku.luukkainen@digia.com> | 2009-06-06 12:11:53 (GMT) |
---|---|---|
committer | Markku Luukkainen <markku.luukkainen@digia.com> | 2009-06-06 12:11:53 (GMT) |
commit | 449d4b00c6e3d8a277821e5fb5837e3da2e6b920 (patch) | |
tree | 60ffd2f79f3e94e89812c7b4df3ed0f8a4db9e88 /src/gui/widgets/qmainwindow.cpp | |
parent | f87e69fcb26387e8d22546778bb1f5d43ba8e200 (diff) | |
download | Qt-449d4b00c6e3d8a277821e5fb5837e3da2e6b920.zip Qt-449d4b00c6e3d8a277821e5fb5837e3da2e6b920.tar.gz Qt-449d4b00c6e3d8a277821e5fb5837e3da2e6b920.tar.bz2 |
Replaced usage of QSoftKeyActions with QActions+SoftKeyRoles
Diffstat (limited to 'src/gui/widgets/qmainwindow.cpp')
-rw-r--r-- | src/gui/widgets/qmainwindow.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/widgets/qmainwindow.cpp b/src/gui/widgets/qmainwindow.cpp index 20270b4..a12c32b 100644 --- a/src/gui/widgets/qmainwindow.cpp +++ b/src/gui/widgets/qmainwindow.cpp @@ -497,7 +497,8 @@ void QMainWindow::setMenuBar(QMenuBar *menuBar) } d->layout->setMenuBar(menuBar); if (menuBar) { - QSoftKeyAction* menu = new QSoftKeyAction(QSoftKeyAction::Menu, QString::fromLatin1("Menu"), this); + QAction* menu = new QAction(QString::fromLatin1("Menu"), this); + menu->setSoftKeyRole(QAction::MenuSoftKey); setSoftKeys(menu); } } |