[patch] do not display links (KUrlLabel) with ampersands (accelerators)

Jarosław Staniek js at iidea.pl
Wed Aug 23 09:16:54 BST 2006


Simon Hausmann said the following, On 2006-08-23 09:40:

>>>>If so, is there accessible replacement?
>>>
>>>QLabel("<a href='http://yoururl'>My website</a>")
>>>
>>>Really, I'm not sure KUrlLabel gives any convenience. Does it ?
>>
>>I cannot force QLabel to display focus rectangle (KUrlLabel does it with my
>>previous patch for 3.5 and trunk).
>>
>>   label.setFocusPolicy(Qt::WheelFocus);
>>
>>Any ideas?
> 
> 
> That was a bug in QLabel. Patch submitted to qt-copy.
> 
> If the text interaction flags for QLabel are set to make links accessible by 
> the keyboard the label will now accept the focus by tab and draw a focus 
> rectangle around links.

OK, thanks. Now: what about StrongFocus? In KUrlLabel I've made it possible 
that clicking on thelink moves focus to the link, just as in browsers.

-- 
regards / pozdrawiam, Jaroslaw Staniek
  Sponsored by OpenOffice Polska (http://www.openoffice.com.pl/en) to work on
  Kexi & KOffice: http://www.kexi-project.org, http://www.koffice.org
  KDE3 & KDE4 Libraries for MS Windows: http://kdelibs.com, http://www.kde.org




More information about the kde-core-devel mailing list