Qt: reset record button state when switching to a new item