summaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.ui
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-05-02 19:27:36 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-02 16:56:13 -0700
commit82b1b04920fdd5882e0cbf28c9871c2ddd404af8 (patch)
tree964af6d2961b8fb2dc05ee68aeeea7d79fe53150 /qt-ui/mainwindow.ui
parentf9c97ff97d072d6a4cb934a50427dc69382281e0 (diff)
downloadsubsurface-82b1b04920fdd5882e0cbf28c9871c2ddd404af8.tar.gz
Test the CSS for styling the TableView
This is a test and I shouldn't be taken seriously. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.ui')
-rw-r--r--qt-ui/mainwindow.ui79
1 files changed, 78 insertions, 1 deletions
diff --git a/qt-ui/mainwindow.ui b/qt-ui/mainwindow.ui
index 073476918..1d31f1cd3 100644
--- a/qt-ui/mainwindow.ui
+++ b/qt-ui/mainwindow.ui
@@ -28,9 +28,86 @@
<widget class="QGraphicsView" name="ProfileWidget"/>
</widget>
<widget class="DiveListView" name="ListWidget">
+ <property name="styleSheet">
+ <string notr="true"> QTreeView {
+ show-decoration-selected: 1;
+ }
+
+ QTreeView::item {
+ border: 1px solid #d9d9d9;
+ border-top-color: transparent;
+ border-bottom-color: transparent;
+ padding: 2px;
+ }
+
+ QTreeView::item:hover {
+ background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #e7effd, stop: 1 #cbdaf1);
+ border: 1px solid #bfcde4;
+ }
+
+ QTreeView::item:selected {
+ border: 1px solid #567dbc;
+ }
+
+ QTreeView::item:selected:active{
+ background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #6ea1f1, stop: 1 #567dbc);
+ }
+
+ QTreeView::item:selected:!active {
+ background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 #6b9be8, stop: 1 #577fbf);
+ }
+
+
+/*
+ QTreeView::branch {
+ background: palette(base);
+ }
+
+ QTreeView::branch:has-siblings:!adjoins-item {
+ background: cyan;
+ }
+
+ QTreeView::branch:has-siblings:adjoins-item {
+ background: red;
+ }
+
+ QTreeView::branch:!has-children:!has-siblings:adjoins-item {
+ background: blue;
+ }
+
+ QTreeView::branch:closed:has-children:has-siblings {
+ background: pink;
+ }
+
+ QTreeView::branch:has-children:!has-siblings:closed {
+ background: gray;
+ }
+
+ QTreeView::branch:open:has-children:has-siblings {
+ background: magenta;
+ }
+
+ QTreeView::branch:open:has-children:!has-siblings {
+ background: green;
+ }
+*/
+</string>
+ </property>
+ <property name="alternatingRowColors">
+ <bool>true</bool>
+ </property>
+ <property name="rootIsDecorated">
+ <bool>true</bool>
+ </property>
<property name="sortingEnabled">
<bool>true</bool>
</property>
+ <property name="animated">
+ <bool>true</bool>
+ </property>
+ <property name="allColumnsShowFocus">
+ <bool>true</bool>
+ </property>
</widget>
</widget>
</item>
@@ -42,7 +119,7 @@
<x>0</x>
<y>0</y>
<width>763</width>
- <height>20</height>
+ <height>19</height>
</rect>
</property>
<widget class="QMenu" name="menuFile">