mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2024-12-24 04:33:03 +03:00
Merge pull request #392 from emil-sawicki9/feature/modal-preview-window
Set render preview window to be modal
This commit is contained in:
commit
34420cd9cd
@ -492,7 +492,7 @@ bool ReportEnginePrivate::showPreviewWindow(ReportPages pages, PreviewHints hint
|
||||
Q_UNUSED(printer)
|
||||
if (pages.count()>0){
|
||||
Q_Q(ReportEngine);
|
||||
PreviewReportWindow* w = new PreviewReportWindow(q, 0, settings());
|
||||
PreviewReportWindow* w = new PreviewReportWindow(q, QApplication::activeWindow(), settings());
|
||||
w->setWindowFlags(Qt::Dialog|Qt::WindowMaximizeButtonHint|Qt::WindowCloseButtonHint| Qt::WindowMinMaxButtonsHint);
|
||||
w->setAttribute(Qt::WA_DeleteOnClose,true);
|
||||
w->setWindowModality(Qt::ApplicationModal);
|
||||
|
Loading…
Reference in New Issue
Block a user