summaryrefslogtreecommitdiffhomepage
path: root/gui/process-detector-fancy-table.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-02-18 10:18:06 +0100
committerStanislaw Halik <sthalik@misaki.pl>2017-02-18 10:18:06 +0100
commit7c273bd13e337b4e44cee3bd91f3e2868a613dbe (patch)
tree96c90dd7dd798775fbcac3e1d8ca17e73d8c7ec6 /gui/process-detector-fancy-table.cpp
parent96e6c73667feb447e0c731f3f7a9bcf726c55fdc (diff)
gui/process-editor: disable resizing table header
Diffstat (limited to 'gui/process-detector-fancy-table.cpp')
-rw-r--r--gui/process-detector-fancy-table.cpp3
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) {}