From 0b15a4a3b3b942e527faeb2b3c62dd88c00fd725 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 5 Oct 2017 14:52:05 +1000 Subject: [PATCH] show field numbers for easier positioning --- aqt/fields.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aqt/fields.py b/aqt/fields.py index ba07fc5ab..9616e3dd8 100644 --- a/aqt/fields.py +++ b/aqt/fields.py @@ -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