Fwd: kstdaccel patch

David Faure faure at kde.org
Mon Mar 15 19:27:39 GMT 2004


On Monday 15 March 2004 13:54, Felix Berger wrote:
> On Monday 15 March 2004 13:23, Lubos Lunak wrote:
> >   /**
> > -   * Goto beginning of current line. Default: Home
> > +   * Goto beginning of the document. Default: Ctrl-Home
> >     * @return the shortcut of the standard accelerator
> >     */
> >    const KShortcut& home();
> 
> Yes, In this case I adapted the documentation to the code, which already set  
> "Ctrl-Home" as default key binding.
> 
> But I like your suggestion to introduce "beginningOfDocument()" and 
> "endOfDocuement()" it's less prone to misunderstandings.
> 
> Actually I would like all ScrollViews to honor these shortcuts, but I guess 
> that's not trivially possible since there is no KScrollView class and Qt 
> follows the inheritance pattern for classes like QListView (which inherits 
> QScrollView)

This can be done in the KApplication global event filter, like we do to
make QLineEdit respect Ctrl+A etc.

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).




More information about the kde-core-devel mailing list