import QtQuick 2.0 import Ubuntu.Components 0.1
MainView { // objectName for functional testing purposes (autopilot-qt5) objectName: "mainView"
// Note! applicationName needs to match the .desktop filename applicationName: "gradientbug" backgroundColor: "#010101" width: units.gu(25) height: units.gu(25)
Page { title: i18n.tr("Simple")
Button { objectName: "button" width: parent.width
text: i18n.tr("Tap me!")
onClicked: { backgroundColor = "#FCFCFC" } } } }
import QtQuick 2.0
import Ubuntu.Components 0.1
MainView {
// objectName for functional testing purposes (autopilot-qt5)
objectName: "mainView"
// Note! applicationName needs to match the .desktop filename Name: "gradientbug" olor: "#010101"
application
backgroundC
width: units.gu(25)
height: units.gu(25)
Page {
title: i18n.tr("Simple")
Button {
objectName : "button"
width: parent.width
text: i18n.tr("Tap me!")
}
}
}
}