[fix #10168] expression widget: grey out when disabled
use const when possible