44 void paint( QPainter *painter,
const QStyleOptionGraphicsItem *itemStyle, QWidget *pWidget )
override;
75 UndoPageSymbol = 3000,
91 int type()
const override;
92 QString displayName()
const override;
109 bool setPageSize(
const QString &size,
Orientation orientation = Portrait );
115 QPageLayout pageLayout()
const;
156 QRectF boundingRect()
const override;
157 void attemptResize(
const QgsLayoutSize &size,
bool includesFrame =
false )
override;
159 ExportLayerBehavior exportLayerBehavior() const override;
164 void redraw() override;
171 bool writePropertiesToElement( QDomElement &parentElement, QDomDocument &document, const
QgsReadWriteContext &context ) const override;
172 bool readPropertiesFromElement( const QDomElement &itemElement, const QDomDocument &document, const
QgsReadWriteContext &context ) override;
176 double mMaximumShadowWidth = -1;
178 std::unique_ptr< QgsLayoutItemPageGrid > mGrid;
179 mutable QRectF mBoundingRect;
184 void createDefaultPageStyleSymbol();
186 friend class TestQgsLayoutPage;
Item representing the paper in a layout.
~QgsLayoutItemPage() override
const QgsFillSymbol * pageStyleSymbol() const
Returns the symbol to use for drawing the page background.
UndoCommand
Page item undo commands, used for collapsing undo commands.
Contains settings and helpers relating to a render of a QgsLayoutItem.
The class is used as a container of context for various read/write operations on other objects.
Contains information about the context of a rendering operation.