11 #ifndef KDREPORTSPREVIEWDIALOG_H
12 #define KDREPORTSPREVIEWDIALOG_H
22 class PreviewDialogPrivate;
47 void setQuickPrinterName(
const QString &printerName);
55 void setDefaultSaveDirectory(
const QString &path);
65 void setDirectoryBrowsingEnabled(
bool allowed);
70 bool isSelected(
int pageNumber)
const;
79 void setPageSizeChangeAllowed(
bool b);
86 void setShowTableSettingsDialog(
bool b);
92 void setWidthForEndlessPrinter(qreal widthMM);
126 QString savedFileName()
const;
129 #if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
131 void pageSizeChanged(QPrinter::PageSize pageSize);
133 void orientationChanged(QPrinter::Orientation orientation);
148 void accept()
override;
150 void reject()
override;
153 std::unique_ptr<PreviewDialogPrivate> d;
void orientationChanged(QPageLayout::Orientation orientation)
Emitted when the user changes the page orientation.
void pageSizeChanged(const QPageSize &pageSize)
Emitted when the user changes the page size.
void linkActivated(const QUrl &url)