The OptionsModel::data that set it has changed. Now it's
case ProxyPort: {
CService addrProxy;
if (GetProxy(NET_IPV4, addrProxy))
return QVariant(addrProxy.GetPort());
else
return 9050;
}
GetPort() returns an unsigned short, that is upcasted by the QVariant (that doesn't directly support shorts)