KDReports icon indicating copy to clipboard operation
KDReports copied to clipboard

KDReports::Frame need setMargin functions

Open CMLDMR opened this issue 3 years ago • 6 comments

QTextFrameFormat class support setMargin functions; Top, Bottom, Right, Left or entire margins.

I implemented new functions to Frame class,

    KDReports::Frame& setTopMargin( qreal topMargin );

    KDReports::Frame& setBottomMargin( qreal bottomMargin );

    KDReports::Frame& setLeftMargin( qreal leftMargin );

    KDReports::Frame& setRightMargin( qreal rightMargin );


    qreal topMargin() const;
    qreal bottomMargin() const;
    qreal leftMargin() const;
    qreal rightMargin() const;

now we can place to element to anywhere at the page.

image

CMLDMR avatar Feb 16 '21 10:02 CMLDMR

Cool. Can you make a merge request?

dfaure-kdab avatar Feb 16 '21 10:02 dfaure-kdab

@CMLDMR thanks for helping with KDReports

Keep in mind that we (KDAB) could not accept a patch for this feature without your signature on the Copyright agreement as mentioned in our README. Of course @dfaure-kdab would need to accept the patch first.

Instructions and more info can be found in doc/KDReports-CopyrightAssignmentForm.pdf

winterz avatar Feb 16 '21 18:02 winterz

I implemented this and its very usefull and now I am using patched version. I wrote here for benefits to other users. I dont know very well github (like, pull request ) and what about Copyrights aggreement?

Thanks for Reply.

CMLDMR avatar Feb 18 '21 10:02 CMLDMR

@CMLDMR Do you still need help with making a pull request, if you're still interested in doing that?

dfaure-kdab avatar Aug 16 '21 13:08 dfaure-kdab

I created long time ago if it is in right way.

CMLDMR avatar Aug 16 '21 13:08 CMLDMR

Oh, right, sorry, that's https://github.com/KDAB/KDReports/pull/26 Let's discuss it there.

dfaure-kdab avatar Aug 16 '21 14:08 dfaure-kdab