on xenial help sign in
Use AbstractButtons instead of Button { color: "transparent" } that doesn't work.
commitacc9c3c497f68ad094692c1bfd105bffa93074e4 authorMichał Sawicz <michal.sawicz@canonical.com> dateThu 4 Jul 2013, 10:05 (13 years ago) parent5e8d7e4
2 files changed+3−7
Components/PageHeader.qml+2−4 Hud/ToolBarIcon.qml+1−3
Components/PageHeader.qml+2−4
@@ -147,9 +147,8 @@ Item {
147147
148148 hasClearButton: false
149149
150− primaryItem: Button {
150+ primaryItem: AbstractButton {
151151 enabled: searchField.text != ""
152− color: "transparent"
153152 onClicked: {
154153 if (searchField.text != "") {
155154 searchHistory.addQuery(searchField.text)
@@ -271,8 +270,7 @@ Item {
271270
272271 // FIXME: this should go into the first item below, but enable: false
273272 // prevents mouse events propagation
274− Button {
275− color: "transparent"
273+ AbstractButton {
276274 anchors {
277275 top: parent.top
278276 right: parent.right
Hud/ToolBarIcon.qml+1−3
@@ -17,9 +17,7 @@
1717import QtQuick 2.0
1818import Ubuntu.Components 0.1
1919
20−Button {
21− color: "transparent"
22−
20+AbstractButton {
2321 property alias source: image.source
2422
2523 height: units.gu(4)