summaryrefslogtreecommitdiffstats
path: root/examples/itemviews/chart
diff options
context:
space:
mode:
authorNorwegian Rock Cat <qt-info@nokia.com>2009-05-12 11:03:20 (GMT)
committerNorwegian Rock Cat <qt-info@nokia.com>2009-05-12 11:05:19 (GMT)
commitaecb4af947acd5e5c4a59641512269348ca97f07 (patch)
treea0e96b051e6ceae2fdd2f9019f1a086179769959 /examples/itemviews/chart
parent61b7057cd2ec4688592ad5d13a55b75b18c8d8a5 (diff)
downloadQt-aecb4af947acd5e5c4a59641512269348ca97f07.zip
Qt-aecb4af947acd5e5c4a59641512269348ca97f07.tar.gz
Qt-aecb4af947acd5e5c4a59641512269348ca97f07.tar.bz2
Replace all instances of "Ctrl+Q" with QKeySequence::Quit.
We introduce this new enum, we should be using it.
Diffstat (limited to 'examples/itemviews/chart')
-rw-r--r--examples/itemviews/chart/mainwindow.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/itemviews/chart/mainwindow.cpp b/examples/itemviews/chart/mainwindow.cpp
index 208a465..d065558 100644
--- a/examples/itemviews/chart/mainwindow.cpp
+++ b/examples/itemviews/chart/mainwindow.cpp
@@ -48,11 +48,11 @@ MainWindow::MainWindow()
{
QMenu *fileMenu = new QMenu(tr("&File"), this);
QAction *openAction = fileMenu->addAction(tr("&Open..."));
- openAction->setShortcut(QKeySequence(tr("Ctrl+O")));
+ openAction->setShortcuts(QKeySequence::Open);
QAction *saveAction = fileMenu->addAction(tr("&Save As..."));
- saveAction->setShortcut(QKeySequence(tr("Ctrl+S")));
+ saveAction->setShortcuts(QKeySequence::SaveAs);
QAction *quitAction = fileMenu->addAction(tr("E&xit"));
- quitAction->setShortcut(QKeySequence(tr("Ctrl+Q")));
+ quitAction->setShortcuts(QKeySequence::Quit);
setupModel();
setupViews();