diff options
author | Yann Bodson <yann.bodson@nokia.com> | 2009-05-07 03:55:24 (GMT) |
---|---|---|
committer | Yann Bodson <yann.bodson@nokia.com> | 2009-05-07 03:55:24 (GMT) |
commit | 78dd666b4f9dd2acc987926eff9513217fff490a (patch) | |
tree | a850e118b7ab035ebf353153dbfe2153268328df /tools/qmlviewer/qmlviewer.cpp | |
parent | 2eb30b4a9c0176bdf8737f0ed8b1496770cc1d20 (diff) | |
download | Qt-78dd666b4f9dd2acc987926eff9513217fff490a.zip Qt-78dd666b4f9dd2acc987926eff9513217fff490a.tar.gz Qt-78dd666b4f9dd2acc987926eff9513217fff490a.tar.bz2 |
Add missing 'Quit' menu item.
Diffstat (limited to 'tools/qmlviewer/qmlviewer.cpp')
-rw-r--r-- | tools/qmlviewer/qmlviewer.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/qmlviewer/qmlviewer.cpp b/tools/qmlviewer/qmlviewer.cpp index dbbe233..7962ed1 100644 --- a/tools/qmlviewer/qmlviewer.cpp +++ b/tools/qmlviewer/qmlviewer.cpp @@ -79,6 +79,12 @@ void QmlViewer::createMenuBar() connect(reloadAction, SIGNAL(triggered()), this, SLOT(reload())); fileMenu->addAction(reloadAction); + QAction *quitAction = new QAction(tr("&Quit"), this); + quitAction->setShortcut(QKeySequence("Ctrl+Q")); + connect(quitAction, SIGNAL(triggered()), qApp, SLOT(quit())); + fileMenu->addSeparator(); + fileMenu->addAction(quitAction); + QMenu *helpMenu = menuBar()->addMenu(tr("&Help")); QAction *aboutAction = new QAction(tr("&About Qt..."), this); connect(aboutAction, SIGNAL(triggered()), qApp, SLOT(aboutQt())); |