0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-11-20 06:30:03 +03:00

notPrintIfEmpty has been added to page item

This commit is contained in:
Arin Alexander
2020-10-01 02:13:28 +03:00
parent 22ab25d6c6
commit 4bbc85b79e
3 changed files with 34 additions and 6 deletions

View File

@@ -62,6 +62,7 @@ class PageItemDesignIntf : public ItemsContainerDesignInft
Q_PROPERTY(UnitType units READ unitType WRITE setUnitTypeProperty)
Q_PROPERTY(PrintBehavior printBehavior READ printBehavior WRITE setPrintBehavior)
Q_PROPERTY(bool dropPrinterMargins READ dropPrinterMargins WRITE setDropPrinterMargins)
Q_PROPERTY(bool notPrintIfEmpty READ notPrintIfEmpty WRITE setNotPrintIfEmpty)
friend class ReportRender;
public:
enum Orientation { Portrait = QPrinter::Portrait, Landscape = QPrinter::Landscape };
@@ -182,6 +183,11 @@ public:
bool dropPrinterMargins() const;
void setDropPrinterMargins(bool dropPrinterMargins);
bool isEmpty() const;
bool notPrintIfEmpty() const;
void setNotPrintIfEmpty(bool notPrintIfEmpty);
signals:
void beforeFirstPageRendered();
void afterLastPageRendered();
@@ -226,6 +232,7 @@ private:
BandDesignIntf* m_pageFooter;
PrintBehavior m_printBehavior;
bool m_dropPrinterMargins;
bool m_notPrintIfEmpty;
};