'Refresh the items in the function list by user settings.'

def refresh_func_list(self):

    ip_flag = self._ipv_id
    self.ui.Functionlist.clear()
    for (f_id, func) in enumerate(self.choice[self._ipv_id]):
        item = QtGui.QListWidgetItem()
        if (self._funcs[ip_flag][f_id] == 1):
            check = QtCore.Qt.Checked
        else:
            check = QtCore.Qt.Unchecked
        item.setCheckState(check)
        item.setText(_translate('Util', func[3], None))
        self.ui.Functionlist.addItem(item)
