on xenial help sign in
Use AbstractButtons instead of Button { color: "transparent" } that doesn't work.
b86111fMichał Sawicz
Components/PageHeader.qml+2−4
@@ -147,9 +147,8 @@ Item {
147
147
148 hasClearButton: false
148 hasClearButton: false
149
149
150− primaryItem: Button {
150+ primaryItem: AbstractButton {
151 enabled: searchField.text != ""
151 enabled: searchField.text != ""
152− color: "transparent"
153 onClicked: {
152 onClicked: {
154 if (searchField.text != "") {
153 if (searchField.text != "") {
155 searchHistory.addQuery(searchField.text)
154 searchHistory.addQuery(searchField.text)
@@ -271,8 +270,7 @@ Item {
271
270
272 // FIXME: this should go into the first item below, but enable: false
271 // FIXME: this should go into the first item below, but enable: false
273 // prevents mouse events propagation
272 // prevents mouse events propagation
274− Button {
273+ AbstractButton {
275− color: "transparent"
276 anchors {
274 anchors {
277 top: parent.top
275 top: parent.top
278 right: parent.right
276 right: parent.right
Hud/ToolBarIcon.qml+1−3
@@ -17,9 +17,7 @@
17import QtQuick 2.0
17import QtQuick 2.0
18import Ubuntu.Components 0.1
18import Ubuntu.Components 0.1
19
19
20−Button {
20+AbstractButton {
21− color: "transparent"
22−
23 property alias source: image.source
21 property alias source: image.source
24
22
25 height: units.gu(4)
23 height: units.gu(4)