On Tue, Jan 20, 2009 at 5:57 PM, Terry Brown <[email protected]> wrote:

> No, drawing the icons is vanilla out of the box Qt, drawing bars on the
> tree would be a customization.  But I'm hopeful that whatever Edward
> ends up with for the tree drawing, which I guess is under major
> development right now, will allow for some customization.  This could
> be good for any number of things, not just progress bars.  Anyway, when
> the tree implementation's settled I'm willing to have a look at doing
> the bars again, but it will depend on that code which is so much in
> flux at the moment.

What would go into implementing progress bars is independet of the the
work Edward is doing ATM - what needs to be done is implementing a
custom drawer for treewidget by doing a delegate (subclass of
QItemDelegate) that takes care of the actual drawing of the items:

http://google.com/codesearch?hl=en&q=QItemDelegate+lang%3Apy

Conveniently, you can probably override the QItemDelegates paint()
method, call the superclasses paint() method and draw your bar over
it.

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

Reply via email to