summaryrefslogtreecommitdiffstats
path: root/examples/widgets/richtext/syntaxhighlighter/mainwindow.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2021-07-13 07:02:21 +0200
committerMarc Mutz <marc.mutz@kdab.com>2021-07-14 00:46:49 +0200
commit0e02f6536acb721a55af12c11fef27299b354d24 (patch)
tree857864bd783d336c1cf41e2303044f007c7661ee /examples/widgets/richtext/syntaxhighlighter/mainwindow.cpp
parenta3a8a1dd7c7e9d6a98ed2597ebac638edf5f067d (diff)
Port all in-tree addAction() users from postfix to infix QKeySequence
The former is QT_DEPRECATED_SINCE(6, 4). Change-Id: I9e60639651b0832f1e3d3282d15dd0ab0b22d819 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'examples/widgets/richtext/syntaxhighlighter/mainwindow.cpp')
-rw-r--r--examples/widgets/richtext/syntaxhighlighter/mainwindow.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/widgets/richtext/syntaxhighlighter/mainwindow.cpp b/examples/widgets/richtext/syntaxhighlighter/mainwindow.cpp
index 2dba0ba73e..e09579881d 100644
--- a/examples/widgets/richtext/syntaxhighlighter/mainwindow.cpp
+++ b/examples/widgets/richtext/syntaxhighlighter/mainwindow.cpp
@@ -117,12 +117,12 @@ void MainWindow::setupFileMenu()
QMenu *fileMenu = new QMenu(tr("&File"), this);
menuBar()->addMenu(fileMenu);
- fileMenu->addAction(tr("&New"), this,
- &MainWindow::newFile, QKeySequence::New);
- fileMenu->addAction(tr("&Open..."),
- this, [this](){ openFile(); }, QKeySequence::Open);
- fileMenu->addAction(tr("E&xit"), qApp,
- &QApplication::quit, QKeySequence::Quit);
+ fileMenu->addAction(tr("&New"), QKeySequence::New,
+ this, &MainWindow::newFile);
+ fileMenu->addAction(tr("&Open..."), QKeySequence::Open,
+ this, [this](){ openFile(); });
+ fileMenu->addAction(tr("E&xit"), QKeySequence::Quit,
+ qApp, &QApplication::quit);
}
void MainWindow::setupHelpMenu()