HelloWorld: Use Qt5-style connect

Change-Id: I6517b157130893800e39016aa346d26c16195103
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Orgad Shaneh
2016-05-29 00:15:09 +03:00
committed by Orgad Shaneh
parent a4116259bc
commit ded0b1c4f5
2 changed files with 2 additions and 2 deletions

View File

@@ -94,7 +94,7 @@ bool HelloWorldPlugin::initialize(const QStringList &arguments, QString *errorMe
// Create an action to be triggered by a menu entry
QAction *helloWorldAction = new QAction(tr("Say \"&Hello World!\""), this);
connect(helloWorldAction, SIGNAL(triggered()), SLOT(sayHelloWorld()));
connect(helloWorldAction, &QAction::triggered, this, &HelloWorldPlugin::sayHelloWorld);
// Register the action with the action manager
Core::Command *command =