[Kmymoney-devel] Trying to understand the code in GroupMarker::paintRegisterCell()

Alvaro Soliverez asoliverez at kde.org
Thu Nov 24 23:18:58 UTC 2011


Hello Marko,
that's because it's KXConfig stuff.
The code is autogenerated from the kmymoney settings file.

What do you want to do with it?

Regards,
Alvaro

On Thu, Nov 24, 2011 at 7:10 PM, Marko Käning <mk-lists at email.de> wrote:
> Hi devs,
>
> I filed the feature request https://bugs.kde.org/show_bug.cgi?id=287494 on bko and thought I do a little research on how an alternative group marker highlighting could be implemented.
>
> I've located GroupMarker::paintRegisterCell() in kmymoney/widgets/register.cpp as an important step in between.
> There I can see that the background brush is defined as this:
>
> ---
>  option.palette.setColor(QPalette::Base, KMyMoneyGlobalSettings::groupMarkerColor());
>
>  QBrush backgroundBrush(option.palette.color(QPalette::Base));
> ---
>
> but I can't locate the KMyMoneyGlobalSettings::groupMarkerColor() method anywhere, since this
>
> ---
> $ find . -name "*.cpp" -exec grep -l "groupMarkerColor" {} \;
> ./kmymoney/widgets/register.cpp
> $
> ---
>
> gave only one result, which is the line from the code snippet above. :-(
>
> I hope one of you guys can enlighten me a little as to how this all is tied together.
>
> Greets,
> Marko
> _______________________________________________
> KMyMoney-devel mailing list
> KMyMoney-devel at kde.org
> https://mail.kde.org/mailman/listinfo/kmymoney-devel
>


More information about the KMyMoney-devel mailing list