11 #ifndef KDREPORTSPREVIEWWIDGET_H
12 #define KDREPORTSPREVIEWWIDGET_H
21 class PreviewWidgetPrivate;
49 bool isSelected(
int pageNumber)
const;
58 void setPageSizeChangeAllowed(
bool b);
65 void setShowTableSettingsDialog(
bool b);
71 void setWidthForEndlessPrinter(qreal widthMM);
84 bool printWithDialog();
89 void setShowPageListWidget(
bool show);
99 QSize sizeHint()
const override;
102 #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
104 void pageSizeChanged(QPrinter::PageSize pageSize);
106 void orientationChanged(QPrinter::Orientation orientation);
124 void resizeEvent(QResizeEvent *)
override;
126 bool eventFilter(QObject *, QEvent *)
override;
129 friend class PreviewWidgetPrivate;
130 std::unique_ptr<PreviewWidgetPrivate> d;