Fixed a bug in docdetails pane where labels were stacked instead of replaced
This commit is contained in:
@@ -47,12 +47,19 @@ class GuiDocDetails(QFrame):
|
|||||||
|
|
||||||
self.fntTwo = QFont()
|
self.fntTwo = QFont()
|
||||||
self.fntTwo.setPointSize(10)
|
self.fntTwo.setPointSize(10)
|
||||||
|
self.colTwo = [
|
||||||
|
QLabel(""),
|
||||||
|
QLabel(""),
|
||||||
|
QLabel(""),
|
||||||
|
QLabel("")
|
||||||
|
]
|
||||||
|
|
||||||
colOne = ["Name","Status","Class","Layout"]
|
colOne = ["Name","Status","Class","Layout"]
|
||||||
for nRow in range(4):
|
for nRow in range(4):
|
||||||
lblOne = QLabel(colOne[nRow])
|
lblOne = QLabel(colOne[nRow])
|
||||||
lblOne.setFont(self.fntOne)
|
lblOne.setFont(self.fntOne)
|
||||||
self.mainBox.addWidget(lblOne,nRow,0)
|
self.mainBox.addWidget(lblOne,nRow,0)
|
||||||
|
self.mainBox.addWidget(self.colTwo[nRow],nRow,1)
|
||||||
|
|
||||||
self.mainBox.setColumnStretch(0,0)
|
self.mainBox.setColumnStretch(0,0)
|
||||||
self.mainBox.setColumnStretch(1,1)
|
self.mainBox.setColumnStretch(1,1)
|
||||||
@@ -76,9 +83,7 @@ class GuiDocDetails(QFrame):
|
|||||||
]
|
]
|
||||||
|
|
||||||
for nRow in range(4):
|
for nRow in range(4):
|
||||||
lblTwo = QLabel(colTwo[nRow])
|
self.colTwo[nRow].setText(colTwo[nRow])
|
||||||
lblTwo.setFont(self.fntTwo)
|
|
||||||
self.mainBox.addWidget(lblTwo,nRow,1)
|
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user