~adamreichold/qpdfview/trunk

« back to all changes in this revision

Viewing changes to pdf-plugin.pro

  • Committer: Adam Reichold
  • Date: 2021-04-18 17:24:01 UTC
  • Revision ID: adam.reichold@t-online.de-20210418172401-pr4a5lu8ya4p56z4
First stab at making the application compatible with Qt versions 4, 5 and 6.

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
HEADERS = sources/model.h sources/pdfmodel.h sources/annotationwidgets.h sources/formfieldwidgets.h
15
15
SOURCES = sources/pdfmodel.cpp sources/annotationwidgets.cpp sources/formfieldwidgets.cpp
16
16
 
17
 
QT += core xml gui
 
17
QT += core gui
18
18
 
19
19
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
 
20
lessThan(QT_MAJOR_VERSION, 6): QT += xml
20
21
 
21
22
!without_pkgconfig {
22
23
    poppler_qt_pkg = poppler-qt$${QT_MAJOR_VERSION}
29
30
    system(pkg-config --atleast-version=0.26 $${poppler_qt_pkg}):DEFINES += HAS_POPPLER_26
30
31
    system(pkg-config --atleast-version=0.31 $${poppler_qt_pkg}):DEFINES += HAS_POPPLER_31
31
32
    system(pkg-config --atleast-version=0.35 $${poppler_qt_pkg}):DEFINES += HAS_POPPLER_35
 
33
    system(pkg-config --atleast-version=0.74 $${poppler_qt_pkg}):DEFINES += HAS_POPPLER_74
32
34
 
33
35
    CONFIG += link_pkgconfig
34
36
    PKGCONFIG += $${poppler_qt_pkg}