diff options
Diffstat (limited to 'Main.qml')
| -rw-r--r-- | Main.qml | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/Main.qml b/Main.qml new file mode 100644 index 0000000..71472a3 --- /dev/null +++ b/Main.qml @@ -0,0 +1,40 @@ +import QtQuick 2.12 +import QtQuick.Window 2.12 +import QtQuick.Controls 2.0 +import QtQuick.Layouts 1.0 +import org.yachat.lib 1.0 + +ApplicationWindow +{ + id: window + width: 320 + height: 240 + visible: true + title: qsTr("Yet Another Chat Client") + + Transition + { + from: "*" + to: "*" + NumberAnimation + { + duration: 1000 + } + } + + StackView + { + id: stack + anchors.fill: parent + initialItem: ContactList {} + } + + Component.onCompleted: + { + Test.awesome = true; + Test.updateAwesomeness(true); + console.log("awesome is ", Test.isAwesome); + Test.updateAwesomeness(false); + console.log("awesome is ", Test.isAwesome); + } +} |
