Version: SVN (using Devel) OS: Linux Compiling any class inherited from KMediaPlayer::Player, gcc reports this warning: /usr/include/kxmlguiclient.h:326: warning: ‘virtual void KXMLGUIClient::stateChanged(const QString&, KXMLGUIClient::ReverseStateChange)’ was hidden /usr/include/KDE/KMediaPlayer/../../kmediaplayer/player.h:131: warning: by ‘void KMediaPlayer::Player::stateChanged(int)’ KParts::Part inherits from XMLGUIClient the stateChanged(const QString&,...) method, and KMediaPlayer::Player::stateChanged(int) is a signal. The problem is that hiding the method stateChanged(QString&) prevents the KPart to be able to use XMLGUI states. Reproducible: Always Steps to Reproduce: compile any class derived from KMediaPlayer::Player. Olivier Goffart provided a solution in k-c-d: The 'workaround' is to explicitly hide or enable it back with the 'using' keyword put using KXMLGUIClient::stateChanged; in the protected section of the KMediaPlayer::Player class this does not break BC
SVN commit 1156842 by pedrol: Enable the stateChanged(QString&, ...) method that was hidden by the stateChanged(int) signal BUG: 246130 M +5 -0 player.h WebSVN link: http://websvn.kde.org/?view=rev&revision=1156842