[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-core-devel
Subject:    Re: KAction port: do we need to support multiple shortcuts per action?
From:       Matthias Ettrich <ettrich () trolltech ! com>
Date:       2005-11-29 16:58:20
Message-ID: 200511291758.20962.ettrich () trolltech ! com
[Download RAW message or body]

On Tuesday 29 November 2005 17:02, Hamish Rodda wrote:
> If we were to use QAction as a base for KAction in KDE4, to
> keep this feature we (or Trolltech) would have to add multiple sequence
> support.

...which is trivial to do in a few lines of code. Wrt the API, is one 
alternative shortcut enough or does it have to be lists? Is it OK that the 
shortcut context is the same for all shortcuts? In that case, adding a simple

 void setAlternativeShortcuts(const QList<QKeySequence>&)
 QList<QKeySequence> alternativeShortcuts() const;

is all it takes. And sending a patch to qt-bugs.

 Matthias
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic