Port away from deprecated QButtonGroup::buttonClicked(int). Move porting aids to separate header file.