diff options
author | Michael Brasser <michael.brasser@nokia.com> | 2009-05-07 04:01:18 (GMT) |
---|---|---|
committer | Michael Brasser <michael.brasser@nokia.com> | 2009-05-07 04:01:18 (GMT) |
commit | 907f783ae6be3665ea43ebc157c4cd027c11cd28 (patch) | |
tree | d6e9addfae1099c6bfc61b05697956cce5c7ed7e /tools/qmlviewer | |
parent | efc88aff5538d9dfff4f2abcd21d575815488c45 (diff) | |
parent | 78dd666b4f9dd2acc987926eff9513217fff490a (diff) | |
download | Qt-907f783ae6be3665ea43ebc157c4cd027c11cd28.zip Qt-907f783ae6be3665ea43ebc157c4cd027c11cd28.tar.gz Qt-907f783ae6be3665ea43ebc157c4cd027c11cd28.tar.bz2 |
Merge branch 'kinetic-declarativeui' of git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
Diffstat (limited to 'tools/qmlviewer')
-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())); |