diff --git a/resources/themes/dark.qss b/resources/themes/dark.qss index 894d2bd1..a7efe6e1 100644 --- a/resources/themes/dark.qss +++ b/resources/themes/dark.qss @@ -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; +} diff --git a/resources/themes/midnight.qss b/resources/themes/midnight.qss index 29e82170..879f1db4 100644 --- a/resources/themes/midnight.qss +++ b/resources/themes/midnight.qss @@ -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; +} diff --git a/src/ui/montabwidget.cpp b/src/ui/montabwidget.cpp index aef21f3c..f1693bb3 100644 --- a/src/ui/montabwidget.cpp +++ b/src/ui/montabwidget.cpp @@ -26,7 +26,7 @@ void MonTabWidget::populate() { activeTabs = QVector(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);