Fixed a bug in docdetails pane where labels were stacked instead of replaced

This commit is contained in:
Veronica K. B. Olsen
2019-06-16 22:18:47 +02:00
parent 881d4e2308
commit 3f32da7ece
+8 -3
View File
@@ -47,12 +47,19 @@ class GuiDocDetails(QFrame):
self.fntTwo = QFont()
self.fntTwo.setPointSize(10)
self.colTwo = [
QLabel(""),
QLabel(""),
QLabel(""),
QLabel("")
]
colOne = ["Name","Status","Class","Layout"]
for nRow in range(4):
lblOne = QLabel(colOne[nRow])
lblOne.setFont(self.fntOne)
self.mainBox.addWidget(lblOne,nRow,0)
self.mainBox.addWidget(self.colTwo[nRow],nRow,1)
self.mainBox.setColumnStretch(0,0)
self.mainBox.setColumnStretch(1,1)
@@ -76,9 +83,7 @@ class GuiDocDetails(QFrame):
]
for nRow in range(4):
lblTwo = QLabel(colTwo[nRow])
lblTwo.setFont(self.fntTwo)
self.mainBox.addWidget(lblTwo,nRow,1)
self.colTwo[nRow].setText(colTwo[nRow])
return