Port to qmlRegisterAnonymousType()
The anonymous variant of qmlRegisterType() is deprecated in Qt5 and gone in Qt6.
This however now requires us to specify a module URI and major version number. I used the names and (lowest) versions used already for other types nearby where available, and fell back to "org.kde.kwin" and 0 otherwise.