[Bug 60498] Reconfiguring toolbars forgets button state

Jens Dagerbo jens.dagerbo at swipnet.se
Sat Jan 15 13:33:02 UTC 2005


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=60498         
jens.dagerbo swipnet se changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|kdevelop-devel kdevelop org |coolo kde org
          Component|debugger                    |general
            Product|kdevelop                    |kdelibs
            Version|CVS                         |3.3



------- Additional Comments From jens.dagerbo swipnet se  2005-01-15 13:32 -------
Interesting. The debugger plugin uses a probably little used feature -  KXMLGUIClient::stateChanged() to switch between states from a set of predefined states defined in the ui.rc file. (kdevelop/languages/cpp/debugger/kdevdebugger.rc)

>From a quick glance at the KXMLGUIClient::stateChanged() code it seems KXMLGuiClient doesn't store the state, it only applies the setting it's been called with. The problem is that this means that when the toolbars have been rearranged (which apparently reverts state to the default) it has no idea what state the buttons should be in. 

As far as I can tell there is no reasonable way for the application to know if the toolbars have changed, so even if it were to store the needed state, it wouldn't know when to reapply it.

Unless I'm missing something (highly likely, this is KXMGUI, after all.. ;) ) this is a kdelibs issue.

Reassigning.


(Ignoring comment #2 - open a new bug report for different issues.)




More information about the KDevelop-devel mailing list