fix inconsistent table header text size

This commit is contained in:
garak 2019-10-16 12:24:38 -04:00 committed by huderlem
parent a7e6dd9ebf
commit 8f218c8c2b
3 changed files with 17 additions and 1 deletions

View file

@ -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;
}

View file

@ -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;
}

View file

@ -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);