diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2021-07-13 07:02:21 +0200 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2021-07-14 00:46:49 +0200 |
commit | 0e02f6536acb721a55af12c11fef27299b354d24 (patch) | |
tree | 857864bd783d336c1cf41e2303044f007c7661ee /examples/widgets/itemviews/simpledommodel | |
parent | a3a8a1dd7c7e9d6a98ed2597ebac638edf5f067d (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/itemviews/simpledommodel')
-rw-r--r-- | examples/widgets/itemviews/simpledommodel/mainwindow.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/widgets/itemviews/simpledommodel/mainwindow.cpp b/examples/widgets/itemviews/simpledommodel/mainwindow.cpp index 86543b07a6..56e1381869 100644 --- a/examples/widgets/itemviews/simpledommodel/mainwindow.cpp +++ b/examples/widgets/itemviews/simpledommodel/mainwindow.cpp @@ -62,8 +62,8 @@ MainWindow::MainWindow(QWidget *parent) view(new QTreeView(this)) { fileMenu = menuBar()->addMenu(tr("&File")); - fileMenu->addAction(tr("&Open..."), this, &MainWindow::openFile, QKeySequence::Open); - fileMenu->addAction(tr("E&xit"), this, &QWidget::close, QKeySequence::Quit); + fileMenu->addAction(tr("&Open..."), QKeySequence::Open, this, &MainWindow::openFile); + fileMenu->addAction(tr("E&xit"), QKeySequence::Quit, this, &QWidget::close); view->setModel(model); |