summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorSamuel Gaist <samuel.gaist@idiap.ch>2023-02-23 21:18:08 +0100
committerSamuel Gaist <samuel.gaist@idiap.ch>2023-02-25 21:46:48 +0100
commit0c4b0811b3d5530a2765cef8c2b9a6f3e259e4b1 (patch)
tree032fd628d6bee8674980075ca7b4ebf3cce507a5 /examples
parent9921533b609fdd704309258cbc0888db1d79228d (diff)
downloadqttools-0c4b0811b3d5530a2765cef8c2b9a6f3e259e4b1.tar.gz
examples: port linguist examples to new connection style
Task-number: QTBUG-111464 Change-Id: I1dbe83370d8d3dcbb54308c80f2fad6725f777fa Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'examples')
-rw-r--r--examples/linguist/arrowpad/mainwindow.cpp2
-rw-r--r--examples/linguist/trollprint/mainwindow.cpp6
2 files changed, 4 insertions, 4 deletions
diff --git a/examples/linguist/arrowpad/mainwindow.cpp b/examples/linguist/arrowpad/mainwindow.cpp
index 6b8b7816c..96c3d7f5e 100644
--- a/examples/linguist/arrowpad/mainwindow.cpp
+++ b/examples/linguist/arrowpad/mainwindow.cpp
@@ -16,7 +16,7 @@ MainWindow::MainWindow()
//! [1]
exitAct = new QAction(tr("E&xit"), this);
exitAct->setShortcuts(QKeySequence::Quit);
- connect(exitAct, SIGNAL(triggered()), this, SLOT(close()));
+ connect(exitAct, &QAction::triggered, this, &MainWindow::close);
//! [1]
fileMenu = menuBar()->addMenu(tr("&File"));
diff --git a/examples/linguist/trollprint/mainwindow.cpp b/examples/linguist/trollprint/mainwindow.cpp
index eb8fef9a4..d5503b258 100644
--- a/examples/linguist/trollprint/mainwindow.cpp
+++ b/examples/linguist/trollprint/mainwindow.cpp
@@ -33,14 +33,14 @@ void MainWindow::createActions()
exitAct = new QAction(tr("E&xit"), this);
exitAct->setShortcut(tr("Ctrl+Q", "Quit"));
//! [2]
- connect(exitAct, SIGNAL(triggered()), this, SLOT(close()));
+ connect(exitAct, &QAction::triggered, this, &MainWindow::close);
aboutAct = new QAction(tr("&About"), this);
aboutAct->setShortcut(Qt::Key_F1);
- connect(aboutAct, SIGNAL(triggered()), this, SLOT(about()));
+ connect(aboutAct, &QAction::triggered, this, &MainWindow::about);
aboutQtAct = new QAction(tr("About &Qt"), this);
- connect(aboutQtAct, SIGNAL(triggered()), qApp, SLOT(aboutQt()));
+ connect(aboutQtAct, &QAction::triggered, qApp, &QApplication::aboutQt);
}
void MainWindow::createMenus()