diff options
-rw-r--r-- | src/qdbus/qdbusviewer/main.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/qdbus/qdbusviewer/main.cpp b/src/qdbus/qdbusviewer/main.cpp index 5499192c8..f539230be 100644 --- a/src/qdbus/qdbusviewer/main.cpp +++ b/src/qdbus/qdbusviewer/main.cpp @@ -82,7 +82,8 @@ int main(int argc, char *argv[]) QMenu *fileMenu = mw.menuBar()->addMenu(QObject::tr("&File")); QAction *quitAction = fileMenu->addAction(QObject::tr("&Quit"), &mw, SLOT(close())); - Q_UNUSED(quitAction); + quitAction->setShortcut(QKeySequence::Quit); + quitAction->setMenuRole(QAction::QuitRole); QMenu *helpMenu = mw.menuBar()->addMenu(QObject::tr("&Help")); QAction *aboutAction = helpMenu->addAction(QObject::tr("&About")); |