Use consistently std::as_const instead of qAsConst
Not part of public API, new qAsConst introduced when before everything was switched to std::as_const.
Not part of public API, new qAsConst introduced when before everything was switched to std::as_const.