2020-05-26 17:56:56 -04:00
|
|
|
import QtQuick 2.12
|
2020-05-25 16:34:26 -04:00
|
|
|
import QtQuick.Controls 2.3
|
|
|
|
import QtQuick.Layouts 1.3
|
|
|
|
import Qt.labs.platform 1.1
|
2020-05-26 17:56:56 -04:00
|
|
|
import QtGraphicalEffects 1.12
|
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-05-28 07:19:18 -04:00
|
|
|
property alias searchStr: searchBox.searchStr
|
2020-05-25 16:34:26 -04:00
|
|
|
|
|
|
|
id: contactsColumn
|
|
|
|
width: 300
|
|
|
|
Layout.minimumWidth: 200
|
2020-05-27 14:40:58 -04:00
|
|
|
Layout.fillHeight: true
|
|
|
|
|
|
|
|
Text {
|
|
|
|
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 16:34:26 -04:00
|
|
|
|
2020-05-27 16:11:56 -04:00
|
|
|
PublicChatPopup {
|
|
|
|
id: publicChatPopup
|
|
|
|
}
|
|
|
|
|
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-05-25 16:34:26 -04:00
|
|
|
|
2020-05-28 07:32:05 -04:00
|
|
|
AddChat {
|
2020-05-27 12:24:24 -04:00
|
|
|
}
|
2020-05-25 16:34:26 -04:00
|
|
|
|
2020-05-27 12:24:24 -04:00
|
|
|
StackLayout {
|
2020-05-27 14:40:58 -04: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 07:06:17 -04:00
|
|
|
currentIndex: channelList.channelListCount > 0 ? 1 : 0
|
2020-05-27 12:24:24 -04:00
|
|
|
|
2020-05-27 20:21:02 -04:00
|
|
|
EmptyView {}
|
2020-05-26 14:16:07 -04:00
|
|
|
|
2020-05-28 07:06:17 -04:00
|
|
|
ChannelList {
|
|
|
|
id: channelList
|
2020-05-27 12:24:24 -04:00
|
|
|
}
|
|
|
|
}
|
2020-05-25 16:34:26 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
/*##^##
|
|
|
|
Designer {
|
2020-05-27 13:56:25 -04:00
|
|
|
D{i:0;formeditorColor:"#ffffff";height:770;width:300}
|
2020-05-25 16:34:26 -04:00
|
|
|
}
|
|
|
|
##^##*/
|