From d2264ce6cd1af385520bb1c3dbbd642359994694 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 23 Feb 2017 06:52:20 +0100 Subject: gui/process-detector: fix user interface layout issues It can still break on some exotic styles like OSX. --- gui/process-detector-fancy-table.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gui') 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); -- cgit v1.2.3