forked from qt-creator/qt-creator
HelloWorld: Use Qt5-style connect
Change-Id: I6517b157130893800e39016aa346d26c16195103 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
committed by
Orgad Shaneh
parent
a4116259bc
commit
ded0b1c4f5
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user