summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-02-18 13:20:38 +0100
committerStanislaw Halik <sthalik@misaki.pl>2017-02-18 13:20:38 +0100
commit39007f724dd6c6b380dfea6dc33ec449d34b3871 (patch)
tree1317c67977e37a27711ec7661b4190046b38803a
parent66e16f241efabe0736214818e00ab7137a3b869d (diff)
gui/process-widget: fix horiz scrollbar right this time
-rw-r--r--gui/process-detector-fancy-table.cpp2
-rw-r--r--gui/process_widget.ui12
2 files changed, 13 insertions, 1 deletions
diff --git a/gui/process-detector-fancy-table.cpp b/gui/process-detector-fancy-table.cpp
index ad6a75cc..1f13fc43 100644
--- a/gui/process-detector-fancy-table.cpp
+++ b/gui/process-detector-fancy-table.cpp
@@ -7,7 +7,7 @@ void FancyTable::resizeEvent(QResizeEvent* e)
QTableView::resizeEvent(e);
int w = width();
setColumnWidth(2, 32);
- w -= 64;
+ w -= 32;
setColumnWidth(0, w / 2);
setColumnWidth(1, w / 2);
horizontalHeader()->setSectionResizeMode(QHeaderView::Fixed);
diff --git a/gui/process_widget.ui b/gui/process_widget.ui
index 9768c8da..f6854644 100644
--- a/gui/process_widget.ui
+++ b/gui/process_widget.ui
@@ -25,9 +25,21 @@
<property name="focusPolicy">
<enum>Qt::NoFocus</enum>
</property>
+ <property name="horizontalScrollBarPolicy">
+ <enum>Qt::ScrollBarAlwaysOff</enum>
+ </property>
+ <property name="alternatingRowColors">
+ <bool>true</bool>
+ </property>
+ <property name="textElideMode">
+ <enum>Qt::ElideNone</enum>
+ </property>
<property name="cornerButtonEnabled">
<bool>false</bool>
</property>
+ <attribute name="horizontalHeaderMinimumSectionSize">
+ <number>0</number>
+ </attribute>
<attribute name="horizontalHeaderStretchLastSection">
<bool>true</bool>
</attribute>