diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-02-18 10:18:06 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-02-18 10:18:06 +0100 |
commit | 7c273bd13e337b4e44cee3bd91f3e2868a613dbe (patch) | |
tree | 96c90dd7dd798775fbcac3e1d8ca17e73d8c7ec6 | |
parent | 96e6c73667feb447e0c731f3f7a9bcf726c55fdc (diff) |
gui/process-editor: disable resizing table header
-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) {} |