summaryrefslogtreecommitdiff
path: root/src/plugins/mcusupport/wizards/qmlproject/main.qml.tpl
blob: 44f4788740ce487a0c292b28ac5716acaecc5600 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import QtQuick 2.0
import CustomModule

Rectangle {

    Row {
        Image {
            anchors.centerIn: parent
            source: "assets/icon.png"
        }
        Text {
            anchors.centerIn: parent
            text: " for MCUs"
        }
    }

    CustomButton {
        anchors.centerIn: parent
        text: qsTr("Hello world!")
        onClicked: BackendObject.toggle()
    }

    BackendObject.onCustomPropertyChanged: Qt.uiLanguage = BackendObject.customProperty ? "en_US" : "nb_NO"
}