Use setData of model instead of item

This commit is contained in:
Florian Bruhin 2014-05-02 16:29:01 +02:00
parent e54a649337
commit 0fc789509f

View File

@ -74,7 +74,7 @@ class SettingOptionCompletionModel(BaseCompletionModel):
# changed before init
return
val = config.get(section, option)
item.setData(val, Qt.DisplayRole)
self.setData(item.index(), val, Qt.DisplayRole)
class SettingValueCompletionModel(BaseCompletionModel):