Fix 'Hardly distinguishable line colors in reports'
ClosedPublic

Authored by habacker on Jul 5 2019, 6:42 PM.

Details

Summary

The color palette used for a diagram can now be modified in
individual reports.

Note: In KReportConfigurationFilterDlg::slotSearch there is redundant code
for casting eMyMoney::Report::ChartPalette to int which is already implemented
in xmlstoragehelper.cpp.

BUG:408361
FIXED-IN:4.8.4,5.0.6

Test Plan

compiled and checked on linux

Diff Detail

Repository
R261 KMyMoney
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
habacker requested review of this revision.Jul 5 2019, 6:42 PM
habacker created this revision.
habacker added a comment.EditedJul 5 2019, 6:52 PM

Unfortunally in 5.0 branch there is not reports entry in the settings dialog. This settings has been moved to settings->plugins->report-plugin->settings

habacker updated this revision to Diff 61240.Jul 5 2019, 7:31 PM
  • fix loading chart palette from xml file
habacker updated this revision to Diff 61241.Jul 5 2019, 7:33 PM
  • Change comobox entry for using application setting to "Use application setting"
habacker added a comment.EditedJul 6 2019, 9:42 AM

On testing this patch it turned out that if an report uses application palette setting and the palette settings in the application is changed, the new palette is not applied on the fly. It is required to apply the report settings to see the change. This is not an issue with the 4.8 variant of this patch.

Note: this won't make it into 5.0.5 which is due in a few days and there is currently a string freeze. Since it looks like this change is adding strings, we should postpone it.

tbaumgart accepted this revision as: tbaumgart.Aug 6 2019, 8:57 AM

Looks OK to me, though I saw the following when applying the patch:

 INFO  Base commit is not in local repository; trying to fetch.
Created and checked out branch arcpatch-D22293.


    This diff is against commit 056dcbbb7c19f439d117ff2d0b5c1d92bf5fd30e, but
    the commit is nowhere in the working copy. Try to apply it against the
    current working copy state? (634b25f32767258ba72b4fa3b5402a0260f4becd)
    [Y/n] y

Checking patch kmymoney/plugins/xmlhelper/xmlstoragehelper.cpp...
Checking patch kmymoney/plugins/views/reports/reporttabimpl.cpp...
Checking patch kmymoney/plugins/views/reports/reporttabchart.ui...
Checking patch kmymoney/plugins/views/reports/kreportconfigurationfilterdlg.cpp...
Checking patch kmymoney/plugins/views/reports/kbalancechartdlg.cpp...
Checking patch kmymoney/plugins/views/reports/core/kreportchartview.cpp...
Checking patch kmymoney/mymoney/mymoneyreport_p.h...
Checking patch kmymoney/mymoney/mymoneyreport.h...
Checking patch kmymoney/mymoney/mymoneyreport.cpp...
Checking patch kmymoney/mymoney/mymoneyenums.h...
Applied patch kmymoney/plugins/xmlhelper/xmlstoragehelper.cpp cleanly.
Applied patch kmymoney/plugins/views/reports/reporttabimpl.cpp cleanly.
Applied patch kmymoney/plugins/views/reports/reporttabchart.ui cleanly.
Applied patch kmymoney/plugins/views/reports/kreportconfigurationfilterdlg.cpp cleanly.
Applied patch kmymoney/plugins/views/reports/kbalancechartdlg.cpp cleanly.
Applied patch kmymoney/plugins/views/reports/core/kreportchartview.cpp cleanly.
Applied patch kmymoney/mymoney/mymoneyreport_p.h cleanly.
Applied patch kmymoney/mymoney/mymoneyreport.h cleanly.
Applied patch kmymoney/mymoney/mymoneyreport.cpp cleanly.
Applied patch kmymoney/mymoney/mymoneyenums.h cleanly.
 OKAY  Successfully committed patch.
This revision is now accepted and ready to land.Aug 6 2019, 8:57 AM
habacker updated this revision to Diff 63162.EditedAug 6 2019, 9:21 AM
habacker edited the summary of this revision. (Show Details)
  • rebased
  • update version to 5.0.6

Looks OK to me, though I saw the following when applying the patch:

This diff is against commit 056dcbbb7c19f439d117ff2d0b5c1d92bf5fd30e, but
the commit is nowhere in the working copy. Try to apply it against the
current working copy state? (634b25f32767258ba72b4fa3b5402a0260f4becd)
[Y/n] y

fixed by rebasing

This revision was automatically updated to reflect the committed changes.