show field numbers for easier positioning
This commit is contained in:
parent
7b844d12cb
commit
0b15a4a3b3
@ -34,8 +34,8 @@ class FieldDialog(QDialog):
|
|||||||
def fillFields(self):
|
def fillFields(self):
|
||||||
self.currentIdx = None
|
self.currentIdx = None
|
||||||
self.form.fieldList.clear()
|
self.form.fieldList.clear()
|
||||||
for f in self.model['flds']:
|
for c, f in enumerate(self.model['flds']):
|
||||||
self.form.fieldList.addItem(f['name'])
|
self.form.fieldList.addItem("{}: {}".format(c+1, f['name']))
|
||||||
|
|
||||||
def setupSignals(self):
|
def setupSignals(self):
|
||||||
f = self.form
|
f = self.form
|
||||||
|
Loading…
Reference in New Issue
Block a user