-#if QT_VERSION >= 0x050000
-void ActionCollection::connectNotify(const QMetaMethod &method)
-#else
-void ActionCollection::connectNotify(const char *signal)
-#endif
+void ActionCollection::connectNotify(const QMetaMethod &signal)
-#if QT_VERSION >= 0x050000
- QByteArray signal = method.methodSignature();
-#endif
-
- if (QMetaObject::normalizedSignature(SIGNAL(actionHovered(QAction *))) == signal) {
+ if (QMetaMethod::fromSignal(&ActionCollection::actionHovered) == signal) {
if (!_connectHovered) {
_connectHovered = true;
foreach(QAction* action, actions())
connect(action, SIGNAL(hovered()), SLOT(slotActionHovered()));
}
}
if (!_connectHovered) {
_connectHovered = true;
foreach(QAction* action, actions())
connect(action, SIGNAL(hovered()), SLOT(slotActionHovered()));
}
}
if (!_connectTriggered) {
_connectTriggered = true;
foreach(QAction* action, actions())
if (!_connectTriggered) {
_connectTriggered = true;
foreach(QAction* action, actions())