Use qToUnderlying() instead of a custom PowerDevil::to_underlying()
I wasn't aware that the former exists when I introduced the latter. Given that Qt provides this for us already, there's no point in having a separate implementation of this C++23 helper function.