All fixed sizes should no be passed through the pxInt function
This commit is contained in:
+10
-16
@@ -61,32 +61,26 @@ class GuiSessionLogView(QDialog):
|
||||
self.bottomBox = QHBoxLayout()
|
||||
|
||||
self.setWindowTitle("Session Log")
|
||||
self.setMinimumWidth(420)
|
||||
self.setMinimumHeight(400)
|
||||
self.setMinimumWidth(self.mainConf.pxInt(420))
|
||||
self.setMinimumHeight(self.mainConf.pxInt(400))
|
||||
|
||||
widthCol0 = self.optState.validIntRange(
|
||||
self.optState.getInt("GuiSession", "widthCol0", 180), 30, 999, 180
|
||||
)
|
||||
widthCol1 = self.optState.validIntRange(
|
||||
self.optState.getInt("GuiSession", "widthCol1", 80), 30, 999, 80
|
||||
)
|
||||
widthCol2 = self.optState.validIntRange(
|
||||
self.optState.getInt("GuiSession", "widthCol2", 80), 30, 999, 80
|
||||
)
|
||||
widthCol0 = self.optState.getInt("GuiSession", "widthCol0", self.mainConf.pxInt(180))
|
||||
widthCol1 = self.optState.getInt("GuiSession", "widthCol1", self.mainConf.pxInt(80))
|
||||
widthCol2 = self.optState.getInt("GuiSession", "widthCol2", self.mainConf.pxInt(80))
|
||||
|
||||
self.listBox = QTreeWidget()
|
||||
self.listBox.setHeaderLabels(["Session Start","Length","Words",""])
|
||||
self.listBox.setIndentation(0)
|
||||
self.listBox.setColumnWidth(0,widthCol0)
|
||||
self.listBox.setColumnWidth(1,widthCol1)
|
||||
self.listBox.setColumnWidth(2,widthCol2)
|
||||
self.listBox.setColumnWidth(3,0)
|
||||
self.listBox.setColumnWidth(0, widthCol0)
|
||||
self.listBox.setColumnWidth(1, widthCol1)
|
||||
self.listBox.setColumnWidth(2, widthCol2)
|
||||
self.listBox.setColumnWidth(3, 0)
|
||||
|
||||
hHeader = self.listBox.headerItem()
|
||||
hHeader.setTextAlignment(1,Qt.AlignRight)
|
||||
hHeader.setTextAlignment(2,Qt.AlignRight)
|
||||
|
||||
self.monoFont = QFont("Monospace",10)
|
||||
self.monoFont = QFont("Monospace", 10)
|
||||
|
||||
sortValid = (Qt.AscendingOrder, Qt.DescendingOrder)
|
||||
sortCol = self.optState.validIntRange(
|
||||
|
||||
Reference in New Issue
Block a user