Improved treeview representation

This commit is contained in:
Klaus Basan
2016-07-13 18:34:25 +02:00
parent f9c36d0a99
commit 26c2117d65
2 changed files with 27 additions and 1 deletions

View File

@@ -220,7 +220,11 @@
<number>0</number>
</property>
<item>
<widget class="QTreeView" name="tvp_AtcStationsOnlineTree"/>
<widget class="QTreeView" name="tvp_AtcStationsOnlineTree">
<attribute name="headerVisible">
<bool>false</bool>
</attribute>
</widget>
</item>
</layout>
</widget>

View File

@@ -467,6 +467,28 @@ QTableView, QTreeView, QListView {
padding:0px;
}
QTreeView {
show-decoration-selected: 1;
}
QTreeView::item {
border: 0px;
padding: 2px 2px 2px 2px;
}
QTreeView::item:hover {
background: blue;
border: 1px solid #bfcde4;
}
QTreeView::branch:open:has-children {
image: url(:/diagona/icons/diagona/icons/toggle.png);
}
QTreeView::branch:closed:has-children {
image: url(:/diagona/icons/diagona/icons/toggle-expand.png);
}
QSlider::groove:horizontal {
border: 1px solid gray;
height: 4px; /* the groove expands to the size of the slider by default. by giving it a height, it has a fixed size */