qtui: Refactor setIcon()