On Wed, 1 May 2013 03:11:10 -0500
"Edward K. Ream" <[email protected]> wrote:
> In this case, I don't understand the @ stuff. I assume it's some
> macro-like thing you added. Right? I don't think it's part of qt
> stylesheets.
Correct, the stylesheet is parsed for constructs like
@identifier = something
or
@border-color = chartreuse
@border-width = 3px
...
@some-border = solid @border-color @border-width
...
QFrame#fredTheFrame { border: @some-border; }
i.e. macro substitutions, including substitutions within substitutions.
> I don't care much what you do, so long as focus borders work. If you can
> get rid of all the w.setStyleSheet calls, so much the better.
>
> Just let us know when you push what you have.
At the moment your original border highlight code is still in place,
because it appears to attempt to do more than you can do with
stylesheets, I'm not exactly sure what it does, but it seems to try and
use different borders for insert and overwrite modes or something.
It's possible that that isn't working and what it does do could be done
with pure stylesheet code, but I was able to work around the problem it
was causing with dynamic font re-sizing, so there's no need to change
anything at present - all the new functionality's been in the trunk for
a while.
Cheers -Terry
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/leo-editor?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.