on xenial help sign in
Use a ThinDivider instead of a custom built thing
05d868eAlbert Astals
qml/Dash/ScopesListCategory.qml+5−5
@@ -123,13 +123,13 @@ Item {
123 }
123 }
124 }
124 }
125
125
126− Rectangle {
126+ ListItems.ThinDivider {
127 id: dragMarker
127 id: dragMarker
128− color: "black"
129− opacity: 0.3
130− height: units.dp(2)
131− width: root.width
132 visible: false
128 visible: false
129+ anchors {
130+ leftMargin: units.gu(1)
131+ rightMargin: units.gu(1)
132+ }
133 property int index: {
133 property int index: {
134 var i = Math.round((dragItem.y - list.y + dragItem.height/2) / listItemHeight);
134 var i = Math.round((dragItem.y - list.y + dragItem.height/2) / listItemHeight);
135 if (i < 0) i = 0;
135 if (i < 0) i = 0;