mirror of
https://github.com/python-LimeReport/LimeReport.git
synced 2025-09-23 08:39:07 +03:00
Properly detect Qt 6
It doesn't compile yet on Qt 6 but I'm working on it.
This commit is contained in:
@@ -3,21 +3,23 @@ include($$PWD/3rdparty/qtcreator/designerintegrationv2/designerintegration.pri)
|
||||
|
||||
INCLUDEPATH *= $$PWD/3rdparty/designer
|
||||
|
||||
greaterThan(QT_MAJOR_VERSION, 4) : contains(QT, uitools) {
|
||||
DEFINES += HAVE_QTDESIGNER_INTEGRATION
|
||||
equals(QT_MAJOR_VERSION, 4) : CONFIG(uitools) {
|
||||
DEFINES += HAVE_QTDESIGNER_INTEGRATION
|
||||
}
|
||||
|
||||
lessThan(QT_MAJOR_VERSION, 5) : CONFIG(uitools) {
|
||||
DEFINES += HAVE_QTDESIGNER_INTEGRATION
|
||||
if(equals(QT_MAJOR_VERSION, 5) | equals(QT_MAJOR_VERSION, 6)) : contains(QT, uitools) {
|
||||
DEFINES += HAVE_QTDESIGNER_INTEGRATION
|
||||
}
|
||||
|
||||
greaterThan(QT_MAJOR_VERSION, 4) {
|
||||
QT *= designer designercomponents-private
|
||||
} else {
|
||||
equals(QT_MAJOR_VERSION, 4) {
|
||||
CONFIG *= designer
|
||||
qtAddLibrary(QtDesignerComponents)
|
||||
}
|
||||
|
||||
equals(QT_MAJOR_VERSION, 5) | equals(QT_MAJOR_VERSION, 6) {
|
||||
QT *= designer designercomponents-private
|
||||
}
|
||||
|
||||
SOURCES += $$PWD/lrdialogdesigner.cpp
|
||||
HEADERS += $$PWD/lrdialogdesigner.h
|
||||
|
||||
|
Reference in New Issue
Block a user