Reimplement Chart::paint() to fix printing issues

Authored by habacker on Oct 13 2019, 12:42 PM.

Description

Reimplement Chart::paint() to fix printing issues

The previous implementation did not take the headers and footers
into account when resizing the diagram.

The implementation has been taken from AbstractArea::paintIntoRectArea().

This patch adds the method PrintingParameters::scaleFactor(), because
in branch 2.6 the class member PrintingParameters::scaleFactor was made
private.

BUG:405075
FIXED-IN:2.6.2

Test Plan: tested on linux
Reviewed By: danders
Differential Revision: https://phabricator.kde.org/D19541
(cherry picked from commit 347e5dda7b684f49afbfd63177f28e4754891eb7)

Details

Committed
habackerOct 13 2019, 12:42 PM
Reviewer
danders
Differential Revision
D19541: Reimplement Chart::paint() to fix printing issues
Parents
R478:174860aade1d: KChart: Do not ref private headers in KChart convinience header
Branches
Unknown
Tags
Unknown