diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/python/utils/streamTable.py | 6 | ||||
-rw-r--r-- | src/main/resources/base/app.qss | 11 |
2 files changed, 10 insertions, 7 deletions
diff --git a/src/main/python/utils/streamTable.py b/src/main/python/utils/streamTable.py index cc0a244..7aeceed 100644 --- a/src/main/python/utils/streamTable.py +++ b/src/main/python/utils/streamTable.py @@ -19,6 +19,10 @@ class streamTableModel(QAbstractTableModel): return len(self.header) def data(self, index, role): + if role == Qt.TextAlignmentRole: + return Qt.AlignHCenter + if role == Qt.BackgroundColorRole: + return Qt.white if not index.isValid(): return None elif role != Qt.DisplayRole: @@ -129,7 +133,7 @@ class streamTable(QTableView): w = self.verticalHeader().width() + 4 for i in range(self.model.columnCount()): w += self.columnWidth(i) - h = 4 + h = 0 for i in range(self.model.rowCount()): h += self.rowHeight(i) return QRect(0, 0, w, h) diff --git a/src/main/resources/base/app.qss b/src/main/resources/base/app.qss index d7500c4..5650279 100644 --- a/src/main/resources/base/app.qss +++ b/src/main/resources/base/app.qss @@ -265,17 +265,16 @@ customTabWidget customView { padding: 5px; border-radius: 2px; } - +QHeaderView { + qproperty-defaultAlignment: AlignHCenter; +} QHeaderView::section { padding: 4px; border-style: none; + background-color: white; } -/* QHeaderView::section:vertical -{ - border-left: 1px solid #fffff8; -} */ - QTableView { border: none; + background-color: white; }
\ No newline at end of file |