20#ifndef LIBREPCB_EDITOR_GRAPHICSEXPORTPREVIEWWIDGET_H
21#define LIBREPCB_EDITOR_GRAPHICSEXPORTPREVIEWWIDGET_H
60 PageItem(
bool showPageNumber,
bool showResolution,
int number)
noexcept;
65 void setContent(const QSize& pageSize, const QRectF margins,
66 std::shared_ptr<QPicture> picture) noexcept;
68 void paint(QPainter* painter, const QStyleOptionGraphicsItem* option,
69 QWidget* widget) noexcept override;
97 void setPageContent(
int index, const QSize& pageSize, const QRectF margins,
98 std::shared_ptr<QPicture> picture) noexcept;
104 void resizeEvent(QResizeEvent* e) noexcept override;
105 void showEvent(QShowEvent* e) noexcept override;
112 QScopedPointer<QGraphicsView>
mView;
Definition: graphicsexportpreviewwidget.h:56
~PageItem() noexcept
Definition: graphicsexportpreviewwidget.cpp:50
QRectF boundingRect() const noexcept override
Definition: graphicsexportpreviewwidget.cpp:66
QSize getSize() const noexcept
Definition: graphicsexportpreviewwidget.cpp:127
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) noexcept override
Definition: graphicsexportpreviewwidget.cpp:74
QString getResolution() const noexcept
Definition: graphicsexportpreviewwidget.cpp:131
bool mShowPageNumbers
Definition: graphicsexportpreviewwidget.h:79
std::shared_ptr< QPicture > mPicture
Definition: graphicsexportpreviewwidget.h:84
bool mShowResolution
Definition: graphicsexportpreviewwidget.h:80
int mNumber
Definition: graphicsexportpreviewwidget.h:81
QSize mSize
Definition: graphicsexportpreviewwidget.h:82
void setContent(const QSize &pageSize, const QRectF margins, std::shared_ptr< QPicture > picture) noexcept
Definition: graphicsexportpreviewwidget.cpp:53
QRectF mMargins
Definition: graphicsexportpreviewwidget.h:83
PageItem(const PageItem &other)=delete
Definition: occmodel.cpp:77