add tabbar #389

Merged
dan merged 3 commits from tabbar into master 2020-11-24 00:39:10 +00:00
2 changed files with 6 additions and 6 deletions
Showing only changes of commit a0081c9d4e - Show all commits

View File

@ -74,8 +74,8 @@ Rectangle {
color: root.color
}
Opaque.TabBar {
id: tabBar
Opaque.TabBar {
id: tabBar
visible: gcd.experimentsEnabled && Utils.checkMap(gcd.experiments, "tapir-groups-experiment")
width: parent.width - parent.leftPadding - parent.rightPadding
model: [qsTr("add-peer-tab"), qsTr("create-group-tab"), qsTr("join-group-tab")]

View File

@ -19,9 +19,9 @@ ColumnLayout {
property bool accepted
property bool inGroup
Opaque.TabBar {
id: tabBar
Layout.fillWidth: true
Opaque.TabBar {
id: tabBar
Layout.fillWidth: true
model: [qsTr("chat-btn"), qsTr("lists-btn"), qsTr("bulletins-btn")]
onCurrentIndexChanged: overlayStack.overlay = currentIndex + 1
@ -67,7 +67,7 @@ ColumnLayout {
target: gcd
onResetMessagePane: function() {
tabBar.currentIndex = 0
tabBar.currentIndex = 0
overlay.inGroup = false
}