From 7c273bd13e337b4e44cee3bd91f3e2868a613dbe Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 18 Feb 2017 10:18:06 +0100 Subject: gui/process-editor: disable resizing table header --- gui/process-detector-fancy-table.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gui/process-detector-fancy-table.cpp') 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 + 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) {} -- cgit v1.2.3