diff options
author | Samuel Gaist <samuel.gaist@idiap.ch> | 2022-10-25 23:11:15 +0200 |
---|---|---|
committer | Samuel Gaist <samuel.gaist@idiap.ch> | 2022-12-21 22:52:17 +0200 |
commit | d9dd87530149bbc8281af6bf21768c37117f549e (patch) | |
tree | 95c911be9c67d97981026609917bd57839725c4a | |
parent | c47e2aebb6a3d188fb2b16da4ae42804fc0df39f (diff) |
examples: port qmake examples to new connection style
Task-number: QTBUG-106893
Change-Id: Ie4a4874359ac7750de344f4e3702ea7be09e7b53
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
-rw-r--r-- | examples/qmake/precompile/main.cpp | 3 |
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(); |