Set maximum height for author box on project settings

This commit is contained in:
Veronica K. B. Olsen
2021-02-24 19:47:49 +01:00
parent c42b0caf0f
commit b383142c14
+2 -2
View File
@@ -169,7 +169,7 @@ class GuiProjectEditMain(QWidget):
self.mainForm.addGroupLabel(self.tr("Project Settings"))
xW = self.mainConf.pxInt(250)
xH = self.mainConf.pxInt(80)
xH = round(4.8*self.theParent.theTheme.fontPixelSize)
self.editName = QLineEdit()
self.editName.setMaxLength(200)
@@ -192,7 +192,7 @@ class GuiProjectEditMain(QWidget):
)
self.editAuthors = QPlainTextEdit()
self.editAuthors.setMinimumHeight(xH)
self.editAuthors.setMaximumHeight(xH)
self.editAuthors.setMaximumWidth(xW)
self.editAuthors.setPlainText("\n".join(self.theProject.bookAuthors))
self.mainForm.addRow(