status-desktop/ui/app/AppLayouts/Chat/ContactsColumn.qml

74 lines
1.5 KiB
QML
Raw Normal View History

2020-06-17 15:18:31 -04:00
import QtQuick 2.13
import QtQuick.Controls 2.13
import QtQuick.Layouts 1.13
import "../../../imports"
import "../../../shared"
import "./components"
import "./ContactsColumn"
Item {
2020-05-28 07:06:17 -04:00
property alias chatGroupsListViewCount: channelList.channelListCount
property alias searchStr: searchBox.text
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
}
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
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 14:40:58 -04:00
}
2020-05-28 07:32:05 -04:00
AddChat {
2020-06-17 15:18:31 -04:00
id: addChat
}
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
EmptyView {}
2020-05-28 07:06:17 -04:00
ChannelList {
id: channelList
}
}
}