Replace non-existent signals with the correct ones

activated() is actually triggered(), highlighted() is actually hovered()

Task-number: QTBUG-50315
Change-Id: Ieefdc8376102d80d0885a6c7ca47a9380945afef
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@qt.io>
This commit is contained in:
Kavindra Palaraja 2017-01-08 10:22:55 +01:00 committed by Simon Hausmann
parent b0a9b9ab87
commit dfa08d65a5

View File

@ -1507,7 +1507,7 @@ void QMenu::initStyleOption(QStyleOptionMenuItem *option, const QAction *action)
When inserting action items you usually specify a receiver and a When inserting action items you usually specify a receiver and a
slot. The receiver will be notifed whenever the item is slot. The receiver will be notifed whenever the item is
\l{QAction::triggered()}{triggered()}. In addition, QMenu provides \l{QAction::triggered()}{triggered()}. In addition, QMenu provides
two signals, activated() and highlighted(), which signal the two signals, triggered() and hovered(), which signal the
QAction that was triggered from the menu. QAction that was triggered from the menu.
You clear a menu with clear() and remove individual action items You clear a menu with clear() and remove individual action items