summaryrefslogtreecommitdiffhomepage
path: root/gui/process-detector-fancy-table.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-02-23 06:52:20 +0100
committerStanislaw Halik <sthalik@misaki.pl>2017-02-23 08:54:33 +0100
commitd2264ce6cd1af385520bb1c3dbbd642359994694 (patch)
tree68453a7166a1d7498f7e7402f8f846177d5fd9de /gui/process-detector-fancy-table.cpp
parent6f69cdc4305740ed9f54b296a62a8c59ff98da0c (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.cpp3
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);