Fix max length bug in Item Editor and let input boxes expand with dialog width
This commit is contained in:
@@ -64,7 +64,7 @@ class GuiItemEditor(QDialog):
|
|||||||
# Item Label
|
# Item Label
|
||||||
self.editName = QLineEdit()
|
self.editName = QLineEdit()
|
||||||
self.editName.setMinimumWidth(self.mainConf.pxInt(220))
|
self.editName.setMinimumWidth(self.mainConf.pxInt(220))
|
||||||
self.editName.setMaxLength(self.mainConf.pxInt(200))
|
self.editName.setMaxLength(200)
|
||||||
|
|
||||||
# Item Status
|
# Item Status
|
||||||
self.editStatus = QComboBox()
|
self.editStatus = QComboBox()
|
||||||
@@ -143,6 +143,9 @@ class GuiItemEditor(QDialog):
|
|||||||
self.mainForm.addWidget(self.editLayout, 2, 1, 1, 2)
|
self.mainForm.addWidget(self.editLayout, 2, 1, 1, 2)
|
||||||
self.mainForm.addWidget(self.textExport, 3, 0, 1, 2)
|
self.mainForm.addWidget(self.textExport, 3, 0, 1, 2)
|
||||||
self.mainForm.addWidget(self.editExport, 3, 2, 1, 1)
|
self.mainForm.addWidget(self.editExport, 3, 2, 1, 1)
|
||||||
|
self.mainForm.setColumnStretch(0, 0)
|
||||||
|
self.mainForm.setColumnStretch(1, 1)
|
||||||
|
self.mainForm.setColumnStretch(2, 0)
|
||||||
|
|
||||||
self.outerBox = QVBoxLayout()
|
self.outerBox = QVBoxLayout()
|
||||||
self.outerBox.setSpacing(self.mainConf.pxInt(16))
|
self.outerBox.setSpacing(self.mainConf.pxInt(16))
|
||||||
|
|||||||
Reference in New Issue
Block a user