equal
deleted
inserted
replaced
137 pd->nMaxPageRanges = 1; |
137 pd->nMaxPageRanges = 1; |
138 |
138 |
139 if (d->ep->printToFile) |
139 if (d->ep->printToFile) |
140 pd->Flags |= PD_PRINTTOFILE; |
140 pd->Flags |= PD_PRINTTOFILE; |
141 Q_ASSERT(parent != 0 && parent->testAttribute(Qt::WA_WState_Created)); |
141 Q_ASSERT(parent != 0 && parent->testAttribute(Qt::WA_WState_Created)); |
142 pd->hwndOwner = parent->winId(); |
142 pd->hwndOwner = parent->window()->winId(); |
143 pd->lpPageRanges[0].nFromPage = qMax(pdlg->fromPage(), pdlg->minPage()); |
143 pd->lpPageRanges[0].nFromPage = qMax(pdlg->fromPage(), pdlg->minPage()); |
144 pd->lpPageRanges[0].nToPage = (pdlg->toPage() > 0) ? qMin(pdlg->toPage(), pdlg->maxPage()) : 1; |
144 pd->lpPageRanges[0].nToPage = (pdlg->toPage() > 0) ? qMin(pdlg->toPage(), pdlg->maxPage()) : 1; |
145 pd->nCopies = d->ep->num_copies; |
145 pd->nCopies = d->ep->num_copies; |
146 } |
146 } |
147 |
147 |