On 8/9/09, Edward K. Ream <[email protected]> wrote:
>> I made some googling on stylesheets, and noted we can achieve similar
>> functionality with
>>
>> QTreeWidget:focus {
>> background-color: #fdf5f5; /* Leo's traditional tree color */
>> }
>
>
> The code in onFocusColorHelper sets the background color for both focus-in
> and focus-out events. If that can be done just by using stylesheets, I am
> all for it. Otherwise, the existing code, while ugly, is more powerful.
Yes, it can. Color specified by QTreeWidget:focus is set when the
control gains focus. Likewise, the color specified by just QTreeWidget
{ ... } (without :focus mode selector) is set in "other" cases (i.e.
when it has lost focus).
BTW, I'll be unreachable for few days; I became a father (for a
healthy boy) yesterday at 5:06 am :-).
--
Ville M. Vainio
http://tinyurl.com/vainio
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/leo-editor?hl=en
-~----------~----~----~----~------~----~------~--~---