setDefaultShortcutContext in KActionCollection (was: Re: [Konsole-devel] [PATCH] Shortcuts with hidden menu bar)

Robin Stocker robin at nibor.org
Wed Jul 25 14:41:25 BST 2007


Robert Knight schrieb:
> Hi Robin,
> 
> Thanks for patch, it is greatly appreciated.    I have checked and committed it.
> This behaviour affects other KDE applications which also provide the
> option to hide the menu
> bar, Konqueror for example.
> 
> I am not sure about the action classes in kdelibs, I am CCing
> kde-core-devel in the hope that someone might have suggestions.

Following up on this, I have investigated a bit. Not long ago, there was
a setDefaultShortcutContext method in KActionCollection, which would
exactly be the thing we need. It was removed in r654731 by Andreas Hartmetz:

http://websvn.kde.org/trunk/KDE/kdelibs/kdeui/actions/kactioncollection.cpp?r1=651046&r2=654731&pathrev=654731

http://websvn.kde.org/?view=rev&revision=654940

So, with setDefaultShortcutContext removed, what is the suggested way to
get the previous behaviour?

  Robin




More information about the kde-core-devel mailing list