summaryrefslogtreecommitdiffstats
path: root/testing/wkhtmltopdf/qprint.patch
blob: cb3b5ffd777977cc025965a97b90664b673911dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From b42a07d9825aa4241e2ea77edda8ac049e67bab4 Mon Sep 17 00:00:00 2001
From: Ashish Kulkarni <kulkarni.ashish@gmail.com>
Date: Mon, 20 Oct 2014 11:38:23 +0530
Subject: [PATCH] fix build failure with unpatched Qt >= 5.3

This was originally reported as https://bugs.debian.org/763216
---
 common.pri | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/common.pri b/common.pri
index d11e707..ef78ecb 100644
--- a/common.pri
+++ b/common.pri
@@ -43,7 +43,10 @@ win32:      CONFIG += console
 win32-g++*: QMAKE_LFLAGS += -static -static-libgcc -static-libstdc++
 
 QT += webkit network xmlpatterns svg
-greaterThan(QT_MAJOR_VERSION, 4): QT += webkitwidgets
+greaterThan(QT_MAJOR_VERSION, 4) {
+    QT += webkitwidgets
+    greaterThan(QT_MINOR_VERSION, 2): QT += printsupport
+}
 
 # version related information
 VERSION_TEXT=$$(WKHTMLTOX_VERSION)