Port away from deprecated setClearButtonShown() and setupBindings()

Authored by yurchor on Nov 16 2018, 8:18 PM.