Bug in KActionCollection::connectNotify

Nicolas Ternisien nicolas.ternisien at gmail.com
Sat Feb 23 17:20:16 GMT 2008


Hi,

The signal actionHighlighted(QAction* ) in KActionCollection does not
work and generate some error output :

----------------------
....
Object::connect: No such signal KAction::highlighted()
Object::connect:  (sender name:   'switch_application_language')
Object::connect:  (receiver name: 'KXMLGUIClient-KActionCollection')
Object::connect: No such signal KAction::highlighted()
Object::connect:  (sender name:   'help_about_app')
Object::connect:  (receiver name: 'KXMLGUIClient-KActionCollection')
Object::connect: No such signal KAction::highlighted()
Object::connect:  (sender name:   'help_about_kde')
Object::connect:  (receiver name: 'KXMLGUIClient-KActionCollection')
----------------------

This is due to the use of the highlighted() signal in connectNotify()
for a QAction* instance :

http://api.kde.org/4.x-api/kdelibs-apidocs/kdeui/html/classKActionCollection.html#5125866fe10167dada4d1765e552cfce

I think the signal that should be used could be hovered() in QAction,
but it will also need to rename the actionHighlighted(QAction* )
signal into actionHovered(QAction* )

Regards.

Nicolas Ternisien




More information about the kde-core-devel mailing list