| 116 | } |
| 117 | |
| 118 | FilePrinterPreview::FilePrinterPreview(const QString &filename, QWidget *parent) |
| 119 | : QDialog(parent) |
| 120 | , d(new FilePrinterPreviewPrivate(this, filename)) |
| 121 | { |
| 122 | qCDebug(OkularUiDebug) << "kdeprint: creating preview dialog"; |
| 123 | |
| 124 | // Set up the dialog |
| 125 | setWindowTitle(i18n("Print Preview")); |
| 126 | |
| 127 | connect(d->buttonBox, &QDialogButtonBox::rejected, this, &QDialog::reject); |
| 128 | |
| 129 | KWindowConfig::restoreWindowSize(windowHandle(), d->config->group(ConfigGroupKey())); |
| 130 | } |
| 131 | |
| 132 | FilePrinterPreview::~FilePrinterPreview() |
| 133 | { |
nothing calls this directly
no test coverage detected