Make Qt6 detection in build system consistent with other KDE project
ECM sets QT_MAJOR_VERSION appropriately, defaulting to Qt5 but honoring the BUILD_WITH_QT6 option
ECM sets QT_MAJOR_VERSION appropriately, defaulting to Qt5 but honoring the BUILD_WITH_QT6 option