That would work in principle and should address the issue.
There would be a blocker though, plasma-mobile also uses the QML import: https://invent.kde.org/plasma/plasma-mobile/-/blob/master/quicksettings/caffeine/contents/ui/main.qml?ref_type=heads#L5