On Wed, 26 Oct 2011 15:23:32 -0500
"Edward K. Ream" <[email protected]> wrote:

> > I've been working on getting CSS like class behavior, which I think
> > would avoid this problem.  

Sometimes developing is just stupidly frustrating.

I spent at least 45 minutes trying to work out why 

QTextEditor[style_class~='focused_pane'] { border: solid 3px blue; }

wasn't working, turns out Qt styles don't have the same shorthand as
CSS, don't know why I assumed they do.  It just needed to be

border-width: 3px;
border-style: solid;
border-color: blue;

Anyway, the technique appears to work, the lists say that the cheapest
way to get styling on a widget re-done is 

w.style().unpolish(w)
w.style().polish(w)

seems to work but I can't tell if it's too expensive for heavy use,
however I expect almost all re-styling will be down the hierarchy close
to individual widgets where performance shouldn't be an issue.

Should have something to share in the next day or two, but the intent
is a single master stylesheet with 'classes' (tagging) of widgets to
select styling.

Cheers -Terry

-- 
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.

Reply via email to