Changeset View
Changeset View
Standalone View
Standalone View
discover/qml/ApplicationPage.qml
Show First 20 Lines • Show All 81 Lines • ▼ Show 20 Line(s) | 79 | onClicked: if(index>=0) { | |||
---|---|---|---|---|---|
82 | window.stack.pop() | 82 | window.stack.pop() | ||
83 | Navigation.openApplication(res) | 83 | Navigation.openApplication(res) | ||
84 | } | 84 | } | ||
85 | } | 85 | } | ||
86 | } | 86 | } | ||
87 | } | 87 | } | ||
88 | 88 | | |||
89 | header: QQC2.ToolBar { | 89 | header: QQC2.ToolBar { | ||
90 | anchors { | 90 | height: Kirigami.Units.gridUnit * 2.3 | ||
91 | right: parent.right | | |||
92 | left: parent.left | | |||
93 | } | | |||
94 | 91 | | |||
95 | contentItem: RowLayout { | 92 | contentItem: RowLayout { | ||
96 | spacing: Kirigami.Units.smallSpacing | 93 | spacing: Kirigami.Units.smallSpacing | ||
97 | 94 | | |||
98 | ToolButton { | 95 | Button { | ||
99 | Layout.leftMargin: Kirigami.Units.smallSpacing | 96 | Layout.leftMargin: Kirigami.Units.smallSpacing | ||
100 | iconName: "draw-arrow-back" | 97 | iconName: "draw-arrow-back" | ||
101 | tooltip: i18n("Back") | 98 | tooltip: i18n("Back") | ||
102 | enabled: appInfo.sClose.enabled | 99 | enabled: appInfo.sClose.enabled | ||
103 | onClicked: appInfo.sClose.activated() | 100 | onClicked: appInfo.sClose.activated() | ||
104 | } | 101 | } | ||
105 | Item { | 102 | Item { | ||
106 | Layout.fillWidth: true | 103 | Layout.fillWidth: true | ||
107 | } | 104 | } | ||
108 | Kirigami.Heading { | | |||
109 | level: 3 | | |||
110 | Layout.maximumWidth: parent.width/2 | | |||
111 | text: appInfo.application.name | | |||
112 | maximumLineCount: 1 | | |||
113 | elide: Text.ElideRight | | |||
114 | horizontalAlignment: Text.AlignHCenter | | |||
115 | } | | |||
116 | Item { | | |||
117 | Layout.fillWidth: true | | |||
118 | } | | |||
119 | 105 | | |||
120 | Binding { | 106 | Binding { | ||
121 | target: appInfo.actions | 107 | target: appInfo.actions | ||
122 | property: "main" | 108 | property: "main" | ||
123 | value: appbutton.action | 109 | value: appbutton.action | ||
124 | } | 110 | } | ||
125 | 111 | | |||
126 | InstallApplicationButton { | 112 | InstallApplicationButton { | ||
▲ Show 20 Lines • Show All 256 Lines • Show Last 20 Lines |