On Oct 19, 5:49 am, "Edward K. Ream" <[EMAIL PROTECTED]> wrote:

> - Set headline-editing colors to something easier to read.

It took a bit of fiddling, but the following work:

QTreeWidget {
    /* These apply to the selected item, but not to editing items.*/
    background-color: #ffffec; /* Leo's traditional tree color */
    selection-color: blue;
    selection-background-color: pink;
}

QTreeWidget QLineEdit {
    background-color: white;
    selection-color: red;
    selection-background-color: blue;
}

The second applies to QLineEdits that are part of QTreeWidgets.  It's
an excellent pattern.  I had to guess that a QTreeWidgetItem actually
wraps a QLineEdit; selecting QTreeWidgetItem does not work.

Edward
--~--~---------~--~----~------------~-------~--~----~
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