summaryrefslogtreecommitdiffhomepage
path: root/gui/process-detector-fancy-table.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/process-detector-fancy-table.cpp')
-rw-r--r--gui/process-detector-fancy-table.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/gui/process-detector-fancy-table.cpp b/gui/process-detector-fancy-table.cpp
new file mode 100644
index 00000000..af3aa830
--- /dev/null
+++ b/gui/process-detector-fancy-table.cpp
@@ -0,0 +1,13 @@
+#include "process-detector-fancy-table.hpp"
+
+void FancyTable::resizeEvent(QResizeEvent* e)
+{
+ QTableView::resizeEvent(e);
+ int w = width();
+ setColumnWidth(2, 32);
+ w -= 48;
+ setColumnWidth(0, w / 2);
+ setColumnWidth(1, w / 2);
+}
+
+FancyTable::FancyTable(QWidget* parent) : QTableWidget(parent) {}