summaryrefslogtreecommitdiff
path: root/main.qml
diff options
context:
space:
mode:
authorJoe Robinson <joe@lc8n.com>2017-04-14 19:07:16 +0200
committerJoe Robinson <joe@lc8n.com>2017-04-14 19:07:16 +0200
commita75725425aaa29ad26d7f1225ec7e4e6c55a640d (patch)
tree27f3f2ca1b8c44bef27b30a278f6f83c37996abe /main.qml
Initial commit, basic connection and message handling, some broken old code
Diffstat (limited to 'main.qml')
-rw-r--r--main.qml44
1 files changed, 44 insertions, 0 deletions
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})
+
+ }
+
+
+
+ }
+
+}