| 144 | } |
| 145 | |
| 146 | void FilePrinterPreview::showEvent(QShowEvent *event) |
| 147 | { |
| 148 | if (!event->spontaneous()) { |
| 149 | // being shown for the first time |
| 150 | if (!d->doPreview()) { |
| 151 | event->accept(); |
| 152 | return; |
| 153 | } |
| 154 | } |
| 155 | QDialog::showEvent(event); |
| 156 | } |
| 157 | |
| 158 | #include "moc_fileprinterpreview.cpp" |