Fix some widgets without parent, and update template file record keeping

This commit is contained in:
Veronica Berglyd Olsen
2024-02-07 20:37:53 +01:00
parent c420d8ae38
commit bbb23b4bc9
8 changed files with 33 additions and 17 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ class GuiEditLabel(QDialog):
mSp = CONFIG.pxInt(12)
# Item Label
self.labelValue = QLineEdit()
self.labelValue = QLineEdit(self)
self.labelValue.setMinimumWidth(mVd)
self.labelValue.setMaxLength(200)
self.labelValue.setText(text)
+3 -3
View File
@@ -361,7 +361,7 @@ class _StatusPage(NFixedPage):
self.dnButton.clicked.connect(lambda: self._moveItem(1))
# Edit Form
self.editName = QLineEdit()
self.editName = QLineEdit(self)
self.editName.setMaxLength(40)
self.editName.setPlaceholderText(self.tr("Select item to edit"))
self.editName.setEnabled(False)
@@ -621,12 +621,12 @@ class _ReplacePage(NFixedPage):
self.delButton.clicked.connect(self._delEntry)
# Edit Form
self.editKey = QLineEdit()
self.editKey = QLineEdit(self)
self.editKey.setPlaceholderText(self.tr("Select item to edit"))
self.editKey.setEnabled(False)
self.editKey.setMaxLength(40)
self.editValue = QLineEdit()
self.editValue = QLineEdit(self)
self.editValue.setEnabled(False)
self.editValue.setMaxLength(80)
+1 -1
View File
@@ -75,7 +75,7 @@ class GuiWordList(QDialog):
self.listBox.setDragDropMode(QAbstractItemView.NoDragDrop)
self.listBox.setSortingEnabled(True)
self.newEntry = QLineEdit()
self.newEntry = QLineEdit(self)
self.addButton = QPushButton(SHARED.theme.getIcon("add"), "")
self.addButton.clicked.connect(self._doAdd)