examples: port qmake examples to new connection style

Task-number: QTBUG-106893
Change-Id: Ie4a4874359ac7750de344f4e3702ea7be09e7b53
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
This commit is contained in:
Samuel Gaist 2022-10-25 23:11:15 +02:00
parent c47e2aebb6
commit d9dd875301

View File

@ -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();