On Mon, Jan 12, 2015 at 5:42 AM, jkn <[email protected]> wrote:

> Hi (Edward)
>     I'd like to be able to specify the format of 'top level' headline
> text, in a different way to headlines that have a 'nest level' of > 1 (or
> zero, not sure how the terminology goes). Is this currently possible
> ​?
>

This is possible for web pages, using css:

http://www.w3schools.com/cssref/css_selectors.asp
http://www.w3schools.com/cssref/sel_firstchild.asp

Qt style sheets can probably do something similar:

>From http://qt-project.org/doc/qt-4.8/stylesheet-reference.html:

QQQQQ
QTreeView <http://qt-project.org/doc/qt-4.8/qtreeview.html>

...The branches of the tree view can be styled using the ::branch
<http://qt-project.org/doc/qt-4.8/stylesheet-reference.html#branch-sub>
subcontrol. The ::branch Sub-control supports the :open
<http://qt-project.org/doc/qt-4.8/stylesheet-reference.html#open-ps>,
:closed
<http://qt-project.org/doc/qt-4.8/stylesheet-reference.html#closed-ps>,
:has-sibling
<http://qt-project.org/doc/qt-4.8/stylesheet-reference.html#has-siblings-ps>
and :has-children
<http://qt-project.org/doc/qt-4.8/stylesheet-reference.html#has-children-ps>
pseudo states.

Use the ::item
<http://qt-project.org/doc/qt-4.8/stylesheet-reference.html#item-sub>
subcontrol for more fine grained control over the items in the QTreeView
<http://qt-project.org/doc/qt-4.8/qtreeview.html>.

QQQQQ

> ​
>  would it be looked on favourably as a wish list bug?
>

​Probably not, as it looks like it can be done in a custom style sheet.

HTH.

Edward

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to