<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def set_inifile(self, current, previous):
 """Set the configobj to the current index of the files_lv This is a slot for the currentChanged signal :param current: the modelindex of a inifilesmodel that should be set for the configobj_treev :type current: QModelIndex :param previous: the previous selected index :type previous: QModelIndex :returns: None :raises: None """

        c = self.inimodel.data(current, self.inimodel.confobjRole)
        self.confobjmodel = ConfigObjModel(c)
        self.configobj_treev.setModel(self.confobjmodel)
        self.configobj_treev.expandAll()
        self.confobjmodel.dataChanged.connect(self.iniedited)