From a75725425aaa29ad26d7f1225ec7e4e6c55a640d Mon Sep 17 00:00:00 2001 From: Joe Robinson Date: Fri, 14 Apr 2017 19:07:16 +0200 Subject: Initial commit, basic connection and message handling, some broken old code --- main.qml | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 main.qml (limited to 'main.qml') diff --git a/main.qml b/main.qml new file mode 100644 index 0000000..e1052fd --- /dev/null +++ b/main.qml @@ -0,0 +1,44 @@ +import QtQuick 2.7 +import QtQuick.Controls 2.1 +import QtQuick.Layouts 1.3 + +ApplicationWindow { + visible: true + width: 640 + height: 530 + title: qsTr("blachat") + + + StackLayout { + id: swipeView + anchors.fill: parent + currentIndex: channel_tabs.currentIndex + + IrcChannel { + } + + } + Component { + id: tabButton + TabButton { text: "TabButton" } + } + + footer: TabBar { + id: channel_tabs + objectName: "channel_tabs" + TabButton { + text: "a" + } + + function add_channel(channel){ + var newTab = tabButton.createObject(channel_tabs, {"text": channel}) + channel_tabs.addItem(newTab) + var newChannel = Qt.createComponent("Page1.qml").createObject(swipeView, {"objectName": "channel"+channel}) + + } + + + + } + +} -- cgit v1.2.3