Changeset View
Changeset View
Standalone View
Standalone View
discover/qml/InstalledPage.qml
| 1 | import QtQuick 2.1 | 1 | import QtQuick 2.1 | ||
|---|---|---|---|---|---|
| 2 | import QtQuick.Controls 2.1 | 2 | import QtQuick.Controls 2.1 as QQC2 | ||
| 3 | import QtQuick.Layouts 1.1 | 3 | import QtQuick.Layouts 1.1 | ||
| 4 | import org.kde.discover 2.0 | 4 | import org.kde.discover 2.0 | ||
| 5 | import org.kde.discover.app 1.0 | 5 | import org.kde.discover.app 1.0 | ||
| 6 | import org.kde.kirigami 2.1 as Kirigami | 6 | import org.kde.kirigami 2.2 as Kirigami | ||
| 7 | 7 | | |||
| 8 | ApplicationsListPage { | 8 | ApplicationsListPage { | ||
| 9 | id: page | 9 | id: page | ||
| 10 | stateFilter: AbstractResource.Installed | 10 | stateFilter: AbstractResource.Installed | ||
| 11 | sortRole: ResourcesProxyModel.NameRole | 11 | sortRole: ResourcesProxyModel.NameRole | ||
| 12 | sortOrder: Qt.AscendingOrder | 12 | sortOrder: Qt.AscendingOrder | ||
| 13 | allBackends: true | 13 | allBackends: true | ||
| 14 | 14 | | |||
| 15 | title: i18n("Installed") | 15 | title: i18n("Installed") | ||
| 16 | compact: true | 16 | compact: true | ||
| 17 | canNavigate: false | 17 | canNavigate: false | ||
| 18 | 18 | | |||
| 19 | listHeader: null | 19 | header: QQC2.ToolBar { | ||
| 20 | header: ToolBar { | 20 | height: Kirigami.Units.gridUnit * 2.3 | ||
| 21 | Kirigami.Theme.inherit: false | ||||
| 22 | Kirigami.Theme.colorSet: Kirigami.Theme.Window | ||||
| 23 | contentItem: RowLayout { | ||||
| 21 | Kirigami.Heading { | 24 | Kirigami.Heading { | ||
| 22 | anchors { | | |||
| 23 | right: parent.right | | |||
| 24 | rightMargin: Kirigami.Units.largeSpacing | | |||
| 25 | } | | |||
| 26 | text: page.title | 25 | text: page.title | ||
| 26 | maximumLineCount: 1 | ||||
| 27 | elide: Text.ElideRight | ||||
| 28 | horizontalAlignment: Text.AlignHCenter | ||||
| 29 | Layout.fillWidth: true | ||||
| 30 | } | ||||
| 27 | } | 31 | } | ||
| 28 | } | 32 | } | ||
| 29 | } | 33 | } | ||