2020-06-17 19:18:31 +00:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtQuick.Controls 2.13
|
|
|
|
import QtQuick.Layouts 1.13
|
2020-06-24 03:23:49 +00:00
|
|
|
|
2020-05-25 20:34:26 +00:00
|
|
|
import "../../../imports"
|
2020-05-27 21:09:12 +00:00
|
|
|
import "../../../shared"
|
2020-05-26 18:16:07 +00:00
|
|
|
import "./components"
|
2020-05-28 00:21:02 +00:00
|
|
|
import "./ContactsColumn"
|
2020-05-25 20:34:26 +00:00
|
|
|
|
2020-05-27 17:56:25 +00:00
|
|
|
Item {
|
2020-05-28 11:06:17 +00:00
|
|
|
property alias chatGroupsListViewCount: channelList.channelListCount
|
2020-06-15 16:24:21 +00:00
|
|
|
property alias searchStr: searchBox.text
|
2020-05-25 20:34:26 +00:00
|
|
|
|
|
|
|
id: contactsColumn
|
2020-05-27 18:40:58 +00:00
|
|
|
Layout.fillHeight: true
|
|
|
|
|
2020-06-19 18:06:58 +00:00
|
|
|
StyledText {
|
2020-05-27 18:40:58 +00:00
|
|
|
id: title
|
|
|
|
x: 772
|
|
|
|
text: qsTr("Chat")
|
|
|
|
anchors.top: parent.top
|
|
|
|
anchors.topMargin: 17
|
|
|
|
font.bold: true
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
font.pixelSize: 17
|
|
|
|
}
|
2020-05-25 20:34:26 +00:00
|
|
|
|
2020-05-27 20:11:56 +00:00
|
|
|
PublicChatPopup {
|
|
|
|
id: publicChatPopup
|
|
|
|
}
|
|
|
|
|
2020-06-17 15:56:48 +00:00
|
|
|
GroupChatPopup {
|
|
|
|
id: groupChatPopup
|
|
|
|
}
|
|
|
|
|
2020-05-28 12:56:43 +00:00
|
|
|
PrivateChatPopup {
|
|
|
|
id: privateChatPopup
|
|
|
|
}
|
|
|
|
|
2020-05-28 11:19:18 +00:00
|
|
|
SearchBox {
|
2020-05-27 18:40:58 +00:00
|
|
|
id: searchBox
|
2020-06-15 16:24:21 +00:00
|
|
|
anchors.top: parent.top
|
|
|
|
anchors.topMargin: 59
|
|
|
|
anchors.right: addChat.left
|
|
|
|
anchors.rightMargin: Theme.padding
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.leftMargin: Theme.padding
|
2020-05-27 18:40:58 +00:00
|
|
|
}
|
2020-05-25 20:34:26 +00:00
|
|
|
|
2020-05-28 11:32:05 +00:00
|
|
|
AddChat {
|
2020-06-17 19:18:31 +00:00
|
|
|
id: addChat
|
2020-06-24 03:23:49 +00:00
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.rightMargin: Theme.padding
|
|
|
|
anchors.top: parent.top
|
|
|
|
anchors.topMargin: 59
|
2020-05-27 16:24:24 +00:00
|
|
|
}
|
2020-05-25 20:34:26 +00:00
|
|
|
|
2020-05-27 16:24:24 +00:00
|
|
|
StackLayout {
|
2020-05-27 18:40:58 +00:00
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
anchors.bottomMargin: 0
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.leftMargin: 0
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.rightMargin: 0
|
|
|
|
anchors.top: searchBox.bottom
|
|
|
|
anchors.topMargin: 16
|
|
|
|
|
2020-05-28 11:06:17 +00:00
|
|
|
currentIndex: channelList.channelListCount > 0 ? 1 : 0
|
2020-05-27 16:24:24 +00:00
|
|
|
|
2020-05-28 00:21:02 +00:00
|
|
|
EmptyView {}
|
2020-05-26 18:16:07 +00:00
|
|
|
|
2020-05-28 11:06:17 +00:00
|
|
|
ChannelList {
|
|
|
|
id: channelList
|
2020-06-18 18:06:02 +00:00
|
|
|
searchStr: contactsColumn.searchStr
|
2020-05-27 16:24:24 +00:00
|
|
|
}
|
|
|
|
}
|
2020-05-25 20:34:26 +00:00
|
|
|
}
|