Commit ac8511ad authored by Christoffer Ackelman's avatar Christoffer Ackelman

QT: File->Print should always print the brow/flow widget...

parent 968d8f26
......@@ -118,7 +118,7 @@ WbBckWQt::WbBckWQt(void* bckw_parent_ctx, QWidget* bckw_parent_wid,
void WbBckWQt::print()
{
CoWowQt::CreateBrowPrintDialogQt(name, bckwnav->brow->ctx, nav_widget);
CoWowQt::CreateBrowPrintDialogQt(name, bckwnav->brow->ctx, ((WbBckWNavQt*)bckwnav)->brow_widget);
}
void WbBckWQtWidget::focusInEvent(QFocusEvent* event)
......
......@@ -130,7 +130,7 @@ WbExpWQt::~WbExpWQt()
void WbExpWQt::print()
{
CoWowQt::CreateBrowPrintDialogQt(name, expwnav->brow->ctx, nav_widget);
CoWowQt::CreateBrowPrintDialogQt(name, expwnav->brow->ctx, ((WbExpWNavQt*)expwnav)->brow_widget);
}
void WbExpWQtWidget::focusInEvent(QFocusEvent* event)
......
......@@ -75,7 +75,7 @@ void WdaQt::set_prompt(const char* prompt)
void WdaQt::print(const char* title)
{
CoWowQt::CreateBrowPrintDialogQt(title, wdanav->brow->ctx, brow_widget);
CoWowQt::CreateBrowPrintDialogQt(title, wdanav->brow->ctx, ((WdaNavQt*)wdanav)->brow_widget);
}
void WdaQt::change_value(int set_focus)
......
......@@ -92,7 +92,7 @@ void WCrrQt::print()
strncpy(title, namep, sizeof(title));
CoWowQt::CreateBrowPrintDialogQt(title, xcrrnav->brow->ctx, brow_widget);
CoWowQt::CreateBrowPrintDialogQt(title, xcrrnav->brow->ctx, ((WAttNavQt*)xcrrnav)->brow_widget);
}
void WCrrQtWidget::closeEvent(QCloseEvent* event)
......
......@@ -237,7 +237,7 @@ void XttQt::print()
strcat(title, nodename);
}
CoWowQt::CreateBrowPrintDialogQt(title, xnav->brow->ctx, brow_widget);
CoWowQt::CreateBrowPrintDialogQt(title, xnav->brow->ctx, ((XNavQt*)xnav)->brow_widget);
if (sts == WOW__PRINTDIALOGDISABLED) {
pwr_tFileName filename;
pwr_tCmd cmd;
......
......@@ -89,7 +89,7 @@ CoLogWQt::CoLogWQt(void* logw_parent_ctx, QWidget* logw_parent_wid,
void CoLogWQt::print()
{
CoWowQt::CreateBrowPrintDialogQt(name, logwnav->brow->ctx, nav_widget);
CoWowQt::CreateBrowPrintDialogQt(name, logwnav->brow->ctx, ((CoLogWNavQt*)logwnav)->brow_widget);
}
void CoLogWQtWidget::focusInEvent(QFocusEvent* event)
......
......@@ -135,7 +135,7 @@ void MsgWindowQt::print()
char title[80];
strncpy(title, qPrintable(translate_utf8(name)), sizeof(title));
CoWowQt::CreateBrowPrintDialogQt(title, msgnav->brow->ctx, nav_widget);
CoWowQt::CreateBrowPrintDialogQt(title, msgnav->brow->ctx, ((MsgListQt*)msgnav)->brow_widget);
}
void MsgWindowQtWidget::focusInEvent(QFocusEvent* event)
......
......@@ -339,7 +339,7 @@ void CLogQt::print()
strcat(title, nodename);
}
sts = CoWowQt::CreateBrowPrintDialogQt(title, clognav->brow->ctx, clognav_widget);
sts = CoWowQt::CreateBrowPrintDialogQt(title, clognav->brow->ctx, ((CLogNavQt*)clognav)->brow_widget);
if (sts == WOW__PRINTDIALOGDISABLED) {
wow->DisplayError("Disabled", "Print Dialog is disabled");
}
......
......@@ -328,7 +328,7 @@ void XAttQt::print()
return;
}
CoWowQt::CreateBrowPrintDialogQt(title, xattnav->brow->ctx, brow_widget);
CoWowQt::CreateBrowPrintDialogQt(title, xattnav->brow->ctx, ((XAttNavQt*)xattnav)->brow_widget);
}
void XAttQtWidget::closeEvent(QCloseEvent* event)
......
......@@ -403,7 +403,7 @@ void XColWindQt::get_window_size(int* w, int* h)
void XColWindQt::print()
{
CoWowQt::CreateBrowPrintDialogQt(title, xattnav->brow->ctx, brow_widget);
CoWowQt::CreateBrowPrintDialogQt(title, xattnav->brow->ctx, ((XAttNavQt*)xattnav)->brow_widget);
}
void XColWindQtWidget::closeEvent(QCloseEvent* event)
......
......@@ -92,7 +92,7 @@ void XCrrQt::print()
return;
}
CoWowQt::CreateBrowPrintDialogQt(title, xcrrnav->brow->ctx, brow_widget);
CoWowQt::CreateBrowPrintDialogQt(title, xcrrnav->brow->ctx, ((XAttNavQt*)xcrrnav)->brow_widget);
}
void XCrrQtWidget::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