From d9c430cfd98911e9b07066ece25e71e92406b925 Mon Sep 17 00:00:00 2001 From: Nico Vertriest Date: Mon, 9 Apr 2018 10:35:59 +0200 Subject: Doc: Update connect syntax Order Form Example Task-number: QTBUG-60635 Change-Id: Ia474a23db7c32e68cb23ffa6ec14b9c6376cadec Reviewed-by: Paul Wicking Reviewed-by: Venugopal Shivashankar --- examples/widgets/richtext/orderform/detailsdialog.cpp | 4 ++-- examples/widgets/richtext/orderform/mainwindow.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'examples/widgets/richtext') diff --git a/examples/widgets/richtext/orderform/detailsdialog.cpp b/examples/widgets/richtext/orderform/detailsdialog.cpp index 3ec13c4c70..9ef9eff73d 100644 --- a/examples/widgets/richtext/orderform/detailsdialog.cpp +++ b/examples/widgets/richtext/orderform/detailsdialog.cpp @@ -71,8 +71,8 @@ DetailsDialog::DetailsDialog(const QString &title, QWidget *parent) buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel); - connect(buttonBox, SIGNAL(accepted()), this, SLOT(verify())); - connect(buttonBox, SIGNAL(rejected()), this, SLOT(reject())); + connect(buttonBox, &QDialogButtonBox::accepted, this, &DetailsDialog::verify); + connect(buttonBox, &QDialogButtonBox::rejected, this, &DetailsDialog::reject); //! [0] //! [1] 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")); -- cgit v1.2.3