mirror of
https://github.com/fralx/LimeReport.git
synced 2024-12-25 00:54:39 +03:00
Qt 5 lower 5.3 building has been fixed
This commit is contained in:
parent
b3303a7ef6
commit
37b3ea9fa4
@ -203,7 +203,11 @@ void PreviewReportWidget::print()
|
|||||||
printer.setPrinterName(pi.defaultPrinter().printerName());
|
printer.setPrinterName(pi.defaultPrinter().printerName());
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_QT5
|
#ifdef HAVE_QT5
|
||||||
|
#if (QT_VERSION >= QT_VERSION_CHECK(5, 3, 0))
|
||||||
printer.setPrinterName(pi.defaultPrinterName());
|
printer.setPrinterName(pi.defaultPrinterName());
|
||||||
|
#else
|
||||||
|
printer.setPrinterName(pi.defaultPrinter().printerName());
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
QPrintDialog dialog(&printer,QApplication::activeWindow());
|
QPrintDialog dialog(&printer,QApplication::activeWindow());
|
||||||
if (dialog.exec()==QDialog::Accepted){
|
if (dialog.exec()==QDialog::Accepted){
|
||||||
|
@ -404,7 +404,11 @@ bool ReportEnginePrivate::printReport(QPrinter* printer)
|
|||||||
m_printer.data()->setPrinterName(pi.defaultPrinter().printerName());
|
m_printer.data()->setPrinterName(pi.defaultPrinter().printerName());
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_QT5
|
#ifdef HAVE_QT5
|
||||||
|
#if (QT_VERSION >= QT_VERSION_CHECK(5, 3, 0))
|
||||||
m_printer.data()->setPrinterName(pi.defaultPrinterName());
|
m_printer.data()->setPrinterName(pi.defaultPrinterName());
|
||||||
|
#else
|
||||||
|
m_printer.data()->setPrinterName(pi.defaultPrinter().printerName());
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
QPrintDialog dialog(m_printer.data(),QApplication::activeWindow());
|
QPrintDialog dialog(m_printer.data(),QApplication::activeWindow());
|
||||||
m_printerSelected = dialog.exec()!=QDialog::Rejected;
|
m_printerSelected = dialog.exec()!=QDialog::Rejected;
|
||||||
@ -437,7 +441,11 @@ bool ReportEnginePrivate::printPages(ReportPages pages, QPrinter *printer)
|
|||||||
m_printer.data()->setPrinterName(pi.defaultPrinter().printerName());
|
m_printer.data()->setPrinterName(pi.defaultPrinter().printerName());
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_QT5
|
#ifdef HAVE_QT5
|
||||||
|
#if (QT_VERSION >= QT_VERSION_CHECK(5, 3, 0))
|
||||||
m_printer.data()->setPrinterName(pi.defaultPrinterName());
|
m_printer.data()->setPrinterName(pi.defaultPrinterName());
|
||||||
|
#else
|
||||||
|
m_printer.data()->setPrinterName(pi.defaultPrinter().printerName());
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
QPrintDialog dialog(m_printer.data(),QApplication::activeWindow());
|
QPrintDialog dialog(m_printer.data(),QApplication::activeWindow());
|
||||||
m_printerSelected = dialog.exec()!=QDialog::Rejected;
|
m_printerSelected = dialog.exec()!=QDialog::Rejected;
|
||||||
@ -1210,9 +1218,9 @@ ReportPages ReportEnginePrivate::renderToPages()
|
|||||||
emit renderFinished();
|
emit renderFinished();
|
||||||
m_reportRender.clear();
|
m_reportRender.clear();
|
||||||
|
|
||||||
foreach(PageItemDesignIntf* page, m_renderingPages){
|
//foreach(PageItemDesignIntf* page, m_renderingPages){
|
||||||
delete page;
|
// delete page;
|
||||||
}
|
//}
|
||||||
m_renderingPages.clear();
|
m_renderingPages.clear();
|
||||||
}
|
}
|
||||||
m_reportRendering = false;
|
m_reportRendering = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user