[Kmymoney-devel] question on report "Investment Price Graph"

Bernd Gonsior bernd.gonsior at googlemail.com
Sun Aug 1 19:38:10 CEST 2010


Hello Alvaro,

i started with the task "to not show the data on the report charts if no price
data is available". Thinking about it i thought it would be quite helpful,
if there would be a property "dataAvailable" in "reports::ReportTable". One
could query this property before trying to paint a chart (or print a report)
and create the necessary output.

So i tried to implement it in my sandbox, the attached diff shows how i did
it. Currently this patch only produces some debug messages to outline what i
mean.

Now some questions:

1. Is the approach to introduce such a new property acceptable?

2. If yes, does the patch catch all "real" data (i.e., only - and all - data
descending directly from transactions, no headers, grouptitles and so on)?

Another item:

The task is to change that behavior for the above mentioned report only. This
can be done by checking the reportname. But the reportnames are hardcoded in
KReportsView::defaultReports. In that case (changing the behavior for a
limited set of reports only) it would be recommendable to define the
reportnames in another way to avoid redundancy. Alternatively this behavior
could be applied to all reports, leaving KReportsView::defaultReports
unchanged.

Regards,
Bernd
-------------- next part --------------
A non-text attachment was scrubbed...
Name: suppress-empty-charts.dif.tgz
Type: application/x-compressed-tar
Size: 2307 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kmymoney-devel/attachments/20100801/082c834b/attachment.tgz 


More information about the KMyMoney-devel mailing list