0
0
mirror of https://github.com/fralx/LimeReport.git synced 2025-11-25 00:18:06 +03:00

Qt4 build fixed

This commit is contained in:
Arin Alexander
2017-04-19 02:04:14 +04:00
parent d0cf6f4961
commit 1700576394
6 changed files with 60 additions and 25 deletions

View File

@@ -163,8 +163,12 @@ void PreviewReportWidget::print()
QPrinter printer(QPrinter::HighResolution);
if (!pi.defaultPrinter().isNull())
printer.setPrinterName(pi.defaultPrinterName());
#ifdef HAVE_QT4
printer.setPrinterName(pi.defaultPrinter().printerName());
#endif
#ifdef HAVE_QT5
printer.setPrinterName(pi.defaultPrinterName());
#endif
QPrintDialog dialog(&printer,QApplication::activeWindow());
if (dialog.exec()==QDialog::Accepted){
if (!d_ptr->m_reportPages.isEmpty())