diff options
author | Norwegian Rock Cat <qt-info@nokia.com> | 2009-05-12 11:03:20 (GMT) |
---|---|---|
committer | Norwegian Rock Cat <qt-info@nokia.com> | 2009-05-12 11:05:19 (GMT) |
commit | aecb4af947acd5e5c4a59641512269348ca97f07 (patch) | |
tree | a0e96b051e6ceae2fdd2f9019f1a086179769959 /examples/richtext/syntaxhighlighter | |
parent | 61b7057cd2ec4688592ad5d13a55b75b18c8d8a5 (diff) | |
download | Qt-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/richtext/syntaxhighlighter')
-rw-r--r-- | examples/richtext/syntaxhighlighter/mainwindow.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/examples/richtext/syntaxhighlighter/mainwindow.cpp b/examples/richtext/syntaxhighlighter/mainwindow.cpp index a6312f9..0d1b41f 100644 --- a/examples/richtext/syntaxhighlighter/mainwindow.cpp +++ b/examples/richtext/syntaxhighlighter/mainwindow.cpp @@ -110,14 +110,13 @@ void MainWindow::setupFileMenu() menuBar()->addMenu(fileMenu); fileMenu->addAction(tr("&New"), this, SLOT(newFile()), - QKeySequence(tr("Ctrl+N", - "File|New"))); + QKeySequence::New); + fileMenu->addAction(tr("&Open..."), this, SLOT(openFile()), - QKeySequence(tr("Ctrl+O", - "File|Open"))); + QKeySequence::Open); + fileMenu->addAction(tr("E&xit"), qApp, SLOT(quit()), - QKeySequence(tr("Ctrl+Q", - "File|Exit"))); + QKeySequence::Quit); } void MainWindow::setupHelpMenu() |