--- a/src/gui/dialogs/qprintdialog_win.cpp Tue Jan 26 12:42:25 2010 +0200
+++ b/src/gui/dialogs/qprintdialog_win.cpp Tue Feb 02 00:43:10 2010 +0200
@@ -139,7 +139,7 @@
if (d->ep->printToFile)
pd->Flags |= PD_PRINTTOFILE;
Q_ASSERT(parent != 0 && parent->testAttribute(Qt::WA_WState_Created));
- pd->hwndOwner = parent->winId();
+ pd->hwndOwner = parent->window()->winId();
pd->lpPageRanges[0].nFromPage = qMax(pdlg->fromPage(), pdlg->minPage());
pd->lpPageRanges[0].nToPage = (pdlg->toPage() > 0) ? qMin(pdlg->toPage(), pdlg->maxPage()) : 1;
pd->nCopies = d->ep->num_copies;