diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-08-22 13:29:34 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-08-23 00:05:15 +0200 |
commit | eb7e13da139dc0878e8279eeac704206a220d23a (patch) | |
tree | 4ca81c30ec5c13387b034686bb86396507cfdf2a /gui/process-detector-fancy-table.cpp | |
parent | 7c4b38428039673b79eb5ca058c707c6645ebff9 (diff) |
gui/process-detector: fix circular include
Diffstat (limited to 'gui/process-detector-fancy-table.cpp')
-rw-r--r-- | gui/process-detector-fancy-table.cpp | 13 |
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) {} |