summaryrefslogtreecommitdiffstats
path: root/examples/widgets/tutorials/gettingStarted/gsQt/part2/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/widgets/tutorials/gettingStarted/gsQt/part2/main.cpp')
-rw-r--r--examples/widgets/tutorials/gettingStarted/gsQt/part2/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/widgets/tutorials/gettingStarted/gsQt/part2/main.cpp b/examples/widgets/tutorials/gettingStarted/gsQt/part2/main.cpp
index 90f5f1a6b3..8bf83859a0 100644
--- a/examples/widgets/tutorials/gettingStarted/gsQt/part2/main.cpp
+++ b/examples/widgets/tutorials/gettingStarted/gsQt/part2/main.cpp
@@ -57,7 +57,8 @@ int main(int argc, char *argv[])
QTextEdit *textEdit = new QTextEdit;
QPushButton *quitButton = new QPushButton("&Quit");
- QObject::connect(quitButton, SIGNAL(clicked()), qApp, SLOT(quit()));
+ QObject::connect(quitButton, &QPushButton::clicked,
+ qApp, &QApplication::quit);
QVBoxLayout *layout = new QVBoxLayout;
layout->addWidget(textEdit);