Correction: the code I pasted above was the wrong code. This one works:
import QtQuick 2.0 import Ubuntu.Components 0.1
MainView { objectName: "mainView" applicationName: "CurrencyConverter" id: root
width: units.gu(60) height: units.gu(80)
Page { title: "title"
Label { text: i18n.tr("Currency Converter") anchors.centerIn: parent } } }
Correction: the code I pasted above was the wrong code. This one works:
import QtQuick 2.0
import Ubuntu.Components 0.1
MainView { Name: "CurrencyConverter"
objectName: "mainView"
application
id: root
width: units.gu(60)
height: units.gu(80)
Page {
title: "title"
Label {
anchors. centerIn: parent
text: i18n.tr("Currency Converter")
}
}
}