change events handler for QDialogButtonBox