removeGap property has been added to PageFooterBand

This commit is contained in:
Arin Alexander
2020-04-17 12:28:59 +03:00
parent d738d23446
commit a4acb912a5
9 changed files with 39 additions and 9 deletions

View File

@@ -50,7 +50,7 @@ namespace LimeReport{
PageFooter::PageFooter(QObject *owner, QGraphicsItem *parent)
: BandDesignIntf(LimeReport::BandDesignIntf::PageFooter,xmlTag,owner,parent),
m_printOnFirstPage(true), m_printOnLastPage(true)
m_printOnFirstPage(true), m_printOnLastPage(true), m_removeGap(false)
{
setBandTypeText( tr("Page Footer") );
setMarkerColor(bandColor());
@@ -90,6 +90,16 @@ void PageFooter::processPopUpAction(QAction *action)
BandDesignIntf::processPopUpAction(action);
}
bool PageFooter::removeGap() const
{
return m_removeGap;
}
void PageFooter::setRemoveGap(bool removeGap)
{
m_removeGap = removeGap;
}
bool PageFooter::printOnFirstPage() const
{
return m_printOnFirstPage;

View File

@@ -40,6 +40,7 @@ class PageFooter : public BandDesignIntf
Q_OBJECT
Q_PROPERTY(bool printOnFirstPage READ printOnFirstPage WRITE setPrintOnFirstPage)
Q_PROPERTY(bool printOnLastPage READ printOnLastPage WRITE setPrintOnLastPage)
Q_PROPERTY(bool removeGap READ removeGap WRITE setRemoveGap)
public:
PageFooter(QObject* owner = 0, QGraphicsItem* parent=0);
virtual BaseDesignIntf* createSameTypeItem(QObject* owner=0, QGraphicsItem* parent=0);
@@ -48,6 +49,8 @@ public:
void setPrintOnLastPage(bool printOnLastPage);
bool printOnFirstPage() const;
void setPrintOnFirstPage(bool printOnFirstPage);
bool removeGap() const;
void setRemoveGap(bool removeGap);
protected:
QColor bandColor() const;
@@ -56,6 +59,7 @@ protected:
private:
bool m_printOnFirstPage;
bool m_printOnLastPage;
bool m_removeGap;
};
}