on xenial help sign in
Kill Components/ListItems

ThinDivider can be replaced either by Ubuntu.Components.ListItems.ThinDivider or by an image Header.qml is renamed to DashSectionHeader and added to the Dash/ folder

commit4d914cc85a317b68d8ea793958fe0065084ecb2d authorAlbert Astals Cid <albert.astals@canonical.com> dateTue 4 Oct 2016, 11:32 (10 years ago) parentc898524
6 files changed+5−33
qml/Components/ListItems/ThinDivider.qml−27 qml/Components/ListItems/graphics/ListItemDividerHorizontal@18.png qml/Components/ListItems/Header.qml → qml/Dash/DashSectionHeader.qml qml/Dash/GenericScopeView.qml+1−2 qml/Dash/ScopesListCategory.qml+2−2 qml/Launcher/LauncherPanel.qml+2−2
qml/Components/ListItems/ThinDivider.qmldeleted−27
@@ -1,27 +0,0 @@
1−/*
2− * Copyright (C) 2012 Canonical, Ltd.
3− *
4− * This program is free software; you can redistribute it and/or modify
5− * it under the terms of the GNU General Public License as published by
6− * the Free Software Foundation; version 3.
7− *
8− * This program is distributed in the hope that it will be useful,
9− * but WITHOUT ANY WARRANTY; without even the implied warranty of
10− * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11− * GNU General Public License for more details.
12− *
13− * You should have received a copy of the GNU General Public License
14− * along with this program. If not, see <http://www.gnu.org/licenses/>.
15− */
16−
17−import QtQuick 2.4
18−
19−Image {
20− anchors {
21− left: (parent) ? parent.left : null
22− right: (parent) ? parent.right : null
23− }
24− height: (visible) ? units.dp(2) : 0
25−
26− source: "graphics/ListItemDividerHorizontal.png"
27−}
qml/Components/ListItems/graphics/ListItemDividerHorizontal@18.pngdeleted

Binary file not shown.

qml/Components/ListItems/Header.qml → qml/Dash/DashSectionHeader.qmlrenamed

The content is the same.

qml/Dash/GenericScopeView.qml+1−2
@@ -22,7 +22,6 @@ import Utils 0.1
2222import Unity 0.2
2323import Dash 0.1
2424import "../Components"
25−import "../Components/ListItems" as ListItems
2625import "Previews/PreviewSingleton"
2726
2827FocusScope {
@@ -621,7 +620,7 @@ FocusScope {
621620 }
622621
623622 sectionProperty: "name"
624− sectionDelegate: ListItems.Header {
623+ sectionDelegate: DashSectionHeader {
625624 objectName: "dashSectionHeader" + (delegate ? delegate.category : "")
626625 property int delegateIndex: -1
627626 readonly property var delegate: categoryView.item(delegateIndex)
qml/Dash/ScopesListCategory.qml+2−2
@@ -16,9 +16,9 @@
1616
1717import QtQuick 2.4
1818import Ubuntu.Components 1.3
19+import Ubuntu.Components.ListItems 1.3 as ListItems
1920import Dash 0.1
2021import "../Components"
21−import "../Components/ListItems" as ListItems
2222
2323Item {
2424 id: root
@@ -40,7 +40,7 @@ Item {
4040
4141 implicitHeight: visible ? childrenRect.height : 0
4242
43− ListItems.Header {
43+ DashSectionHeader {
4444 id: header
4545 width: root.width
4646 height: units.gu(5)
qml/Launcher/LauncherPanel.qml+2−2
@@ -18,7 +18,6 @@ import QtQuick 2.4
1818import Ubuntu.Components 1.3
1919import Unity.Launcher 0.1
2020import Ubuntu.Components.Popups 1.3
21−import "../Components/ListItems"
2221import "../Components"
2322
2423Rectangle {
@@ -296,10 +295,11 @@ Rectangle {
296295 }
297296 }
298297
299− ThinDivider {
298+ Image {
300299 id: dropIndicator
301300 objectName: "dropIndicator"
302301 anchors.centerIn: parent
302+ height: visible ? units.dp(2) : 0
303303 width: parent.width + mainColumn.anchors.leftMargin + mainColumn.anchors.rightMargin
304304 opacity: 0
305305 source: "graphics/divider-line.png"