mirror of
https://github.com/fralx/LimeReport.git
synced 2025-11-25 00:18:06 +03:00
Qt 5 lower 5.3 building has been fixed
This commit is contained in:
@@ -203,7 +203,11 @@ void PreviewReportWidget::print()
|
||||
printer.setPrinterName(pi.defaultPrinter().printerName());
|
||||
#endif
|
||||
#ifdef HAVE_QT5
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(5, 3, 0))
|
||||
printer.setPrinterName(pi.defaultPrinterName());
|
||||
#else
|
||||
printer.setPrinterName(pi.defaultPrinter().printerName());
|
||||
#endif
|
||||
#endif
|
||||
QPrintDialog dialog(&printer,QApplication::activeWindow());
|
||||
if (dialog.exec()==QDialog::Accepted){
|
||||
|
||||
Reference in New Issue
Block a user