[Kmymoney-devel] Tags update

Alessandro Russo axela74 at yahoo.it
Tue Oct 16 23:17:12 UTC 2012


Il 15/10/2012 17:27, Thomas Baumgart ha scritto:
>>
>> Thank you! I'm putting another revision this evening if I find the time,
>> I fixed the known bugs and made some other changes.
>>
>> I'm writing the tag(s) in the register after the category like this:
>>
>> Carrefour
>> Food (Paris 2012, another tag, another one)
>> memos
> I like that idea.
>
>
>> I wanted to show each tag with a different color (the user can set a
>> different color for each tag) but I can't see how to do that...
>> Do you know if you can use richtext with QStyle->drawItemText() ?
> Good point, don't know how to do that myself, but using Richtext is certainly
> one approach. Finding the right colors itself is tricky, as the palettes
> usually don't work for bright and dark background at the same time.
>
We could show a filled circle with the color that the user choose and 
leave the names in black...

But I realy don't know how to use (if it's possible) Richtext inside 
style->drawItemText().

BTW: I updated the code at reviewboard.

Best regards,
  Alessandro Russo


More information about the KMyMoney-devel mailing list