| 827 | } |
| 828 | |
| 829 | bool MapPrinter::engineWillRasterize() const |
| 830 | { |
| 831 | #ifdef Q_OS_WIN |
| 832 | if (!engineMayRasterize()) |
| 833 | return false; |
| 834 | |
| 835 | if (!view) |
| 836 | return map.hasAlpha(); |
| 837 | |
| 838 | const auto visibility = view->effectiveMapVisibility(); |
| 839 | return visibility.hasAlpha() |
| 840 | || (visibility.visible && map.hasAlpha()); |
| 841 | #else |
| 842 | Q_ASSERT(!engineMayRasterize()); |
| 843 | return false; |
| 844 | #endif |
| 845 | } |
| 846 | |
| 847 | bool MapPrinter::hasAlpha(const Template* temp) const |
| 848 | { |
no test coverage detected