show field numbers for easier positioning

This commit is contained in:
Damien Elmes 2017-10-05 14:52:05 +10:00
parent 7b844d12cb
commit 0b15a4a3b3

View File

@ -34,8 +34,8 @@ class FieldDialog(QDialog):
def fillFields(self):
self.currentIdx = None
self.form.fieldList.clear()
for f in self.model['flds']:
self.form.fieldList.addItem(f['name'])
for c, f in enumerate(self.model['flds']):
self.form.fieldList.addItem("{}: {}".format(c+1, f['name']))
def setupSignals(self):
f = self.form