Adapt CMake code to make it build with Qt6
Use QT_MAJOR_VERSION, to match what we have in ECM.
Disable building docs stuff by default, there is no query_qmake in ECM for Qt6.
Use QT_MAJOR_VERSION, to match what we have in ECM.
Disable building docs stuff by default, there is no query_qmake in ECM for Qt6.