Commit eaa15f26 authored by Christoffer Ackelman's avatar Christoffer Ackelman

QT: Fixed opening of print dialog from 3 widgets.

parent 3731ef29
...@@ -78,7 +78,7 @@ void WdaQt::print(const char* title) ...@@ -78,7 +78,7 @@ void WdaQt::print(const char* title)
pwr_tStatus sts; pwr_tStatus sts;
wow->CreateBrowPrintDialog(title, wdanav->brow->ctx, wow->CreateBrowPrintDialog(title, wdanav->brow->ctx,
flow_eOrientation_Portrait, 1.0, (void*)this, &sts); flow_eOrientation_Portrait, 1.0, toplevel, &sts);
} }
void WdaQt::change_value(int set_focus) void WdaQt::change_value(int set_focus)
......
...@@ -176,7 +176,7 @@ void WNavQt::print(const char* title) ...@@ -176,7 +176,7 @@ void WNavQt::print(const char* title)
pwr_tStatus sts; pwr_tStatus sts;
wow->CreateBrowPrintDialog( wow->CreateBrowPrintDialog(
title, brow->ctx, flow_eOrientation_Portrait, 1.0, (void*)0, &sts); title, brow->ctx, flow_eOrientation_Portrait, 1.0, NULL, &sts);
} }
int WNavQt::get_selection(char* str, int len) int WNavQt::get_selection(char* str, int len)
......
...@@ -354,7 +354,7 @@ void CLogQt::print() ...@@ -354,7 +354,7 @@ void CLogQt::print()
} }
wow->CreateBrowPrintDialog(title, clognav->brow->ctx, wow->CreateBrowPrintDialog(title, clognav->brow->ctx,
flow_eOrientation_Landscape, 1.0, parent_wid, &sts); flow_eOrientation_Landscape, 1.0, toplevel, &sts);
if (sts == WOW__PRINTDIALOGDISABLED) { if (sts == WOW__PRINTDIALOGDISABLED) {
wow->DisplayError("Disabled", "Print Dialog is disabled"); wow->DisplayError("Disabled", "Print Dialog is disabled");
} }
......
...@@ -406,7 +406,7 @@ void XColWindQt::print() ...@@ -406,7 +406,7 @@ void XColWindQt::print()
pwr_tStatus sts; pwr_tStatus sts;
wow->CreateBrowPrintDialog(title, xattnav->brow->ctx, wow->CreateBrowPrintDialog(title, xattnav->brow->ctx,
flow_eOrientation_Portrait, 1.0, (void*)this, &sts); flow_eOrientation_Portrait, 1.0, toplevel, &sts);
} }
void XColWindQtWidget::closeEvent(QCloseEvent* event) void XColWindQtWidget::closeEvent(QCloseEvent* event)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment