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>
This commit is contained in:
Nico Vertriest 2018-04-09 10:35:59 +02:00
parent 57fae860fd
commit d9c430cfd9
2 changed files with 4 additions and 4 deletions

View File

@ -71,8 +71,8 @@ DetailsDialog::DetailsDialog(const QString &title, QWidget *parent)
buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok
| QDialogButtonBox::Cancel); | QDialogButtonBox::Cancel);
connect(buttonBox, SIGNAL(accepted()), this, SLOT(verify())); connect(buttonBox, &QDialogButtonBox::accepted, this, &DetailsDialog::verify);
connect(buttonBox, SIGNAL(rejected()), this, SLOT(reject())); connect(buttonBox, &QDialogButtonBox::rejected, this, &DetailsDialog::reject);
//! [0] //! [0]
//! [1] //! [1]

View File

@ -75,8 +75,8 @@ MainWindow::MainWindow()
letters = new QTabWidget; letters = new QTabWidget;
connect(newAction, SIGNAL(triggered()), this, SLOT(openDialog())); connect(newAction, &QAction::triggered, this, &MainWindow::openDialog);
connect(quitAction, SIGNAL(triggered()), this, SLOT(close())); connect(quitAction, &QAction::triggered, this, &MainWindow::close);
setCentralWidget(letters); setCentralWidget(letters);
setWindowTitle(tr("Order Form")); setWindowTitle(tr("Order Form"));