fix inconsistent table header text size
This commit is contained in:
parent
a7e6dd9ebf
commit
8f218c8c2b
3 changed files with 17 additions and 1 deletions
|
@ -305,3 +305,11 @@ QScrollBar::add-page:horizontal, QScrollBar::sub-page:horizontal {
|
|||
QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical {
|
||||
background: none;
|
||||
}
|
||||
|
||||
/* Table Headers */
|
||||
|
||||
QHeaderView {
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
font: 12px;
|
||||
}
|
||||
|
|
|
@ -304,3 +304,11 @@ QScrollBar::add-page:horizontal, QScrollBar::sub-page:horizontal {
|
|||
QScrollBar::add-page:vertical, QScrollBar::sub-page:vertical {
|
||||
background: none;
|
||||
}
|
||||
|
||||
/* Table Headers */
|
||||
|
||||
QHeaderView {
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
font: 12px;
|
||||
}
|
||||
|
|
|
@ -26,7 +26,7 @@ void MonTabWidget::populate() {
|
|||
activeTabs = QVector<bool>(fields.size(), false);
|
||||
|
||||
for (EncounterField field : fields) {
|
||||
QTableWidget *table = new QTableWidget;
|
||||
QTableWidget *table = new QTableWidget(this);
|
||||
table->setEditTriggers(QAbstractItemView::NoEditTriggers);
|
||||
table->setFocusPolicy(Qt::NoFocus);
|
||||
table->setSelectionMode(QAbstractItemView::NoSelection);
|
||||
|
|
Loading…
Reference in a new issue