Modify to get Align Justify

OpenRPT
2013-02-24
2013-03-08
  • David Pinelo
    David Pinelo
    2013-02-24

    Hi everyone,

    This is a little bit hack to get align justify on several elements of OpenRPT. The diff are

    502a503,504
    >     else if (elemParam.tagName() == "justify")
    >       labelTarget.align |= Qt::AlignJustify;
    548a551,552
    >     else if (elemParam.tagName() == "justify")
    >       fieldTarget.align |= Qt::AlignJustify;
    617a622,623
    >     else if (elemParam.tagName() == "justify")
    >       textTarget.align |= Qt::AlignJustify;

    and you have to apply to parsexmlutils.cpp.

    Of course, OpenRPT gui does not support justify now, and you have to change your XML, on this way:

    <right/>
    or
    <left/>

    to <justify/>

    Regards.