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

Marko Käning mk-lists at email.de
Thu Nov 24 22:10:51 UTC 2011


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


More information about the KMyMoney-devel mailing list