2020-06-17 15:18:31 -04:00
|
|
|
import QtQuick 2.13
|
|
|
|
import QtQuick.Controls 2.13
|
|
|
|
import QtQuick.Layouts 1.13
|
2020-06-24 13:23:49 +10:00
|
|
|
|
2020-05-25 16:34:26 -04:00
|
|
|
import "../../../imports"
|
2020-05-27 17:09:12 -04:00
|
|
|
import "../../../shared"
|
2020-05-26 14:16:07 -04:00
|
|
|
import "./components"
|
2020-05-27 20:21:02 -04:00
|
|
|
import "./ContactsColumn"
|
2020-05-25 16:34:26 -04:00
|
|
|
|
2020-05-27 13:56:25 -04:00
|
|
|
Item {
|
2020-05-28 07:06:17 -04:00
|
|
|
property alias chatGroupsListViewCount: channelList.channelListCount
|
2020-06-15 12:24:21 -04:00
|
|
|
property alias searchStr: searchBox.text
|
2020-05-25 16:34:26 -04:00
|
|
|
|
|
|
|
id: contactsColumn
|
2020-05-27 14:40:58 -04:00
|
|
|
Layout.fillHeight: true
|
|
|
|
|
2020-06-19 14:06:58 -04:00
|
|
|
StyledText {
|
2020-05-27 14:40:58 -04:00
|
|
|
id: title
|
2020-07-06 16:39:55 -04:00
|
|
|
//% "Chat"
|
|
|
|
text: qsTrId("chat")
|
2020-05-27 14:40:58 -04:00
|
|
|
anchors.top: parent.top
|
2020-07-15 15:38:03 -04:00
|
|
|
anchors.topMargin: Style.current.padding
|
2020-05-27 14:40:58 -04:00
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
2020-07-15 15:38:03 -04:00
|
|
|
font.weight: Font.Bold
|
2020-05-27 14:40:58 -04:00
|
|
|
font.pixelSize: 17
|
|
|
|
}
|
2020-05-25 16:34:26 -04:00
|
|
|
|
2020-05-27 16:11:56 -04:00
|
|
|
PublicChatPopup {
|
|
|
|
id: publicChatPopup
|
|
|
|
}
|
|
|
|
|
2020-06-17 11:56:48 -04:00
|
|
|
GroupChatPopup {
|
|
|
|
id: groupChatPopup
|
|
|
|
}
|
|
|
|
|
2020-05-28 08:56:43 -04:00
|
|
|
PrivateChatPopup {
|
|
|
|
id: privateChatPopup
|
|
|
|
}
|
|
|
|
|
2020-05-28 07:19:18 -04:00
|
|
|
SearchBox {
|
2020-05-27 14:40:58 -04:00
|
|
|
id: searchBox
|
2020-07-15 15:38:03 -04:00
|
|
|
anchors.top: title.bottom
|
|
|
|
anchors.topMargin: Style.current.padding
|
2020-06-15 12:24:21 -04:00
|
|
|
anchors.right: addChat.left
|
2020-07-02 11:14:31 -04:00
|
|
|
anchors.rightMargin: Style.current.padding
|
2020-06-15 12:24:21 -04:00
|
|
|
anchors.left: parent.left
|
2020-07-02 11:14:31 -04:00
|
|
|
anchors.leftMargin: Style.current.padding
|
2020-05-27 14:40:58 -04:00
|
|
|
}
|
2020-05-25 16:34:26 -04:00
|
|
|
|
2020-05-28 07:32:05 -04:00
|
|
|
AddChat {
|
2020-06-17 15:18:31 -04:00
|
|
|
id: addChat
|
2020-06-24 13:23:49 +10:00
|
|
|
anchors.right: parent.right
|
2020-07-02 11:14:31 -04:00
|
|
|
anchors.rightMargin: Style.current.padding
|
2020-07-15 15:38:03 -04:00
|
|
|
anchors.top: title.bottom
|
|
|
|
anchors.topMargin: Style.current.padding
|
2020-05-27 12:24:24 -04:00
|
|
|
}
|
2020-05-25 16:34:26 -04:00
|
|
|
|
2020-09-23 15:11:27 -04:00
|
|
|
ChannelList {
|
|
|
|
id: channelList
|
|
|
|
searchStr: contactsColumn.searchStr
|
|
|
|
|
2020-05-27 14:40:58 -04:00
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: searchBox.bottom
|
2020-07-08 15:59:10 -04:00
|
|
|
anchors.topMargin: Style.current.padding
|
2020-05-27 12:24:24 -04:00
|
|
|
}
|
2020-05-25 16:34:26 -04:00
|
|
|
}
|
2020-07-08 15:19:34 -04:00
|
|
|
|
|
|
|
/*##^##
|
|
|
|
Designer {
|
|
|
|
D{i:0;autoSize:true;formeditorColor:"#ffffff";height:480;width:640}
|
|
|
|
}
|
|
|
|
##^##*/
|