[kquickaddons/configmodule] Make getters const
As they should be
This is a breaking change, so only do it when building against Qt6, i.e. what will become KF6
As they should be
This is a breaking change, so only do it when building against Qt6, i.e. what will become KF6