- added autocomplete for Code editor; TODO: needs to be enabled only when doing Scripts, right now is available for everyone.

This commit is contained in:
Marius Stanciu
2019-03-19 03:05:00 +02:00
parent e57b913b7f
commit bebb827bd2
5 changed files with 52 additions and 0 deletions

View File

@@ -394,6 +394,7 @@ class ObjectCollection(QtCore.QAbstractItemModel):
self.app.myKeywords.remove(old_name)
self.app.myKeywords.append(new_name)
self.app.shell._edit.set_model_data(self.app.myKeywords)
self.app.ui.code_editor.set_model_data(self.app.myKeywords)
except:
log.debug(
"setData() --> Could not remove the old object name from auto-completer model list")
@@ -550,6 +551,7 @@ class ObjectCollection(QtCore.QAbstractItemModel):
try:
self.app.myKeywords.remove(name)
self.app.shell._edit.set_model_data(self.app.myKeywords)
self.app.ui.code_editor.set_model_data(self.app.myKeywords)
except:
log.debug(
"delete_active() --> Could not remove the old object name from auto-completer model list")