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;
bool mShowPageNumbers
Definition: graphicsexportpreviewwidget.h:79
Definition: occmodel.cpp:76
PageItem & operator=(const PageItem &rhs)=delete
QSize getSize() const noexcept
Definition: graphicsexportpreviewwidget.cpp:127
Definition: graphicsexportpreviewwidget.h:56
bool mShowResolution
Definition: graphicsexportpreviewwidget.h:80
int mNumber
Definition: graphicsexportpreviewwidget.h:81
void setContent(const QSize &pageSize, const QRectF margins, std::shared_ptr< QPicture > picture) noexcept
Definition: graphicsexportpreviewwidget.cpp:53
QSize mSize
Definition: graphicsexportpreviewwidget.h:82
std::shared_ptr< QPicture > mPicture
Definition: graphicsexportpreviewwidget.h:84
QRectF mMargins
Definition: graphicsexportpreviewwidget.h:83
QRectF boundingRect() const noexcept override
Definition: graphicsexportpreviewwidget.cpp:66
~PageItem() noexcept
Definition: graphicsexportpreviewwidget.cpp:50
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) noexcept override
Definition: graphicsexportpreviewwidget.cpp:74
QString getResolution() const noexcept
Definition: graphicsexportpreviewwidget.cpp:131