KKeyChooser/KKeyDialog question

Anders Lund anders at alweb.dk
Sun Jul 21 01:23:26 BST 2002


On Friday 19 July 2002 08:11, Hadacek Nicolas wrote:
> Le Vendredi 28 Juin 2002 19:00, Anders Lund a écrit :
> > KKeyChooser uses a tree listview to indicate that the actions to
> > configure origins from different sources.
> >
> > However, in applications all the parent items has the text "Shortcuts"
> > whicyh is not very informative...
> >
> > In Kate, there are many sources: the main app, the editor component,
> > various plugins.
> >
> > The question: Is there an easy way get the names of all those sources
> > displayed in the key chooser, for exmple "Kate", "Editor Component",
> > "Insert File Plugin" etc?
> >
> > Maybe defining a KKeyChooser::insert( KActionCollection *, const QString
> > &) would be nice?
> >
> > Or adding a property "title" to KActionCollection and then use that one?
>
> Ok here is a patch to implement the first option (very simple indeed).
> Since Ellis is not there, I need some other people advice...
>
> the second option can also be done easily and can be used elsewhere (?).
> opinions ?
>
> cu,
> Nicolas

Hi,

It looks good to me, about what I had in mind I guess. I very much agree with 
Davids suggestion, if there is a sane way to get a default value that would 
be nice.

Keep me informed if you commit something, and I'll immediately put it to use 
in Kate:)

-anders




More information about the kde-core-devel mailing list