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

List:       kde-core-devel
Subject:    Re: KMenu title is navigable with the keyboard
From:       Thomas =?iso-8859-1?q?L=FCbking?= <thomas.luebking () web ! de>
Date:       2009-11-19 14:47:49
Message-ID: 200911191547.49708.thomas.luebking () web ! de
[Download RAW message or body]

Am Thursday 19 November 2009 schrieb Albert Astals Cid:

> Any more suggestion or do i go with my patch?
Not aside "fixing" Qt (see my reply to Ossi) - but we should nevertheless 
start efforts on changing and aligning the KMenu titles with potential QMenu 
ones (i.e. fix styles and use similar painting code) so this could be dropped 
for Qt 4.6.x

regarding the patch:

- maybe name it "kmenu_title" (it's an action and obviously "this" ;-)

- you can probably spare the QWidgetAction cast (as you check for the object 
name anyway)

- QList is likely faster (the Set has a fix cost part, we don't expect too 
many elements and logically won't get dupes anyway) 
- also it /should/ be sufficient to just save and check the first title action 
(as it would be encountered first anyway - yesno? do we expect to loose it on 
up/down keys?)

- if the recursive titleaction is reached again 
"visitedTitles.contains(action)" you probably want to 
parent->setActiveAction(0);
as the point is to avoid kbd selection

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

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