diff options
Diffstat (limited to 'gui')
-rw-r--r-- | gui/process-detector-fancy-table.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gui/process-detector-fancy-table.cpp b/gui/process-detector-fancy-table.cpp index c64428e5..c5f15587 100644 --- a/gui/process-detector-fancy-table.cpp +++ b/gui/process-detector-fancy-table.cpp @@ -1,5 +1,7 @@ #include "process-detector-fancy-table.hpp" +#include <QHeaderView> + void FancyTable::resizeEvent(QResizeEvent* e) { QTableView::resizeEvent(e); @@ -8,6 +10,7 @@ void FancyTable::resizeEvent(QResizeEvent* e) w -= 40; setColumnWidth(0, w / 2); setColumnWidth(1, w / 2); + horizontalHeader()->setSectionResizeMode(QHeaderView::Fixed); } FancyTable::FancyTable(QWidget* parent) : QTableWidget(parent) {} |