diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-02-23 06:52:20 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-02-23 08:54:33 +0100 |
commit | d2264ce6cd1af385520bb1c3dbbd642359994694 (patch) | |
tree | 68453a7166a1d7498f7e7402f8f846177d5fd9de /gui/process-detector-fancy-table.cpp | |
parent | 6f69cdc4305740ed9f54b296a62a8c59ff98da0c (diff) |
gui/process-detector: fix user interface layout issues
It can still break on some exotic styles like OSX.
Diffstat (limited to 'gui/process-detector-fancy-table.cpp')
-rw-r--r-- | gui/process-detector-fancy-table.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gui/process-detector-fancy-table.cpp b/gui/process-detector-fancy-table.cpp index 1f13fc43..f1144afa 100644 --- a/gui/process-detector-fancy-table.cpp +++ b/gui/process-detector-fancy-table.cpp @@ -6,8 +6,9 @@ void FancyTable::resizeEvent(QResizeEvent* e) { QTableView::resizeEvent(e); int w = width(); + setContentsMargins(QMargins(0, 0, 0, 0)); + w -= 64; setColumnWidth(2, 32); - w -= 32; setColumnWidth(0, w / 2); setColumnWidth(1, w / 2); horizontalHeader()->setSectionResizeMode(QHeaderView::Fixed); |