summaryrefslogtreecommitdiffstats
path: root/examples/widgets/richtext/orderform/mainwindow.cpp
diff options
context:
space:
mode:
authorNico Vertriest <nico.vertriest@qt.io>2018-04-09 10:35:59 +0200
committerNico Vertriest <nico.vertriest@qt.io>2018-05-16 12:00:00 +0000
commitd9c430cfd98911e9b07066ece25e71e92406b925 (patch)
treef3a1819690b065419ebc7968543754aeb4834023 /examples/widgets/richtext/orderform/mainwindow.cpp
parent57fae860fddcf798c27be033ffeab50f76c842c7 (diff)
Doc: Update connect syntax Order Form Example
Task-number: QTBUG-60635 Change-Id: Ia474a23db7c32e68cb23ffa6ec14b9c6376cadec Reviewed-by: Paul Wicking <paul.wicking@qt.io> Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io>
Diffstat (limited to 'examples/widgets/richtext/orderform/mainwindow.cpp')
-rw-r--r--examples/widgets/richtext/orderform/mainwindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/widgets/richtext/orderform/mainwindow.cpp b/examples/widgets/richtext/orderform/mainwindow.cpp
index 030072978e..b207ee4dbc 100644
--- a/examples/widgets/richtext/orderform/mainwindow.cpp
+++ b/examples/widgets/richtext/orderform/mainwindow.cpp
@@ -75,8 +75,8 @@ MainWindow::MainWindow()
letters = new QTabWidget;
- connect(newAction, SIGNAL(triggered()), this, SLOT(openDialog()));
- connect(quitAction, SIGNAL(triggered()), this, SLOT(close()));
+ connect(newAction, &QAction::triggered, this, &MainWindow::openDialog);
+ connect(quitAction, &QAction::triggered, this, &MainWindow::close);
setCentralWidget(letters);
setWindowTitle(tr("Order Form"));