Use a ThinDivider instead of a custom built thing
commit05d868ec7ba19e905518b18b2db647f29d28e78c
authorAlbert Astals <albert.astals@canonical.com>
dateTue 28 Oct 2014, 17:58 (12 years ago)
parentc5adf59
qml/Dash/ScopesListCategory.qml+5−5
@@ -123,13 +123,13 @@ Item {
123123 }
124124 }
125125
126− Rectangle {
126+ ListItems.ThinDivider {
127127 id: dragMarker
128− color: "black"
129− opacity: 0.3
130− height: units.dp(2)
131− width: root.width
132128 visible: false
129+ anchors {
130+ leftMargin: units.gu(1)
131+ rightMargin: units.gu(1)
132+ }
133133 property int index: {
134134 var i = Math.round((dragItem.y - list.y + dragItem.height/2) / listItemHeight);
135135 if (i < 0) i = 0;