summaryrefslogtreecommitdiffstats
path: root/examples/qmake/precompile/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/qmake/precompile/main.cpp')
-rw-r--r--examples/qmake/precompile/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/qmake/precompile/main.cpp b/examples/qmake/precompile/main.cpp
index ece87dccb3..58050df603 100644
--- a/examples/qmake/precompile/main.cpp
+++ b/examples/qmake/precompile/main.cpp
@@ -15,7 +15,8 @@ int main(int argc, char **argv)
MyObject obj;
MyDialog dialog;
- dialog.connect(dialog.aButton, SIGNAL(clicked()), SLOT(close()));
+ QObject::connect(dialog.aButton, &QPushButton::clicked,
+ &dialog, &MyDialog::close);
dialog.show();
return app.exec();