2020-05-25 20:34:26 +00:00
|
|
|
import QtQuick 2.3
|
|
|
|
import QtQuick.Controls 2.3
|
2020-05-27 20:42:24 +00:00
|
|
|
import QtQuick.Controls 2.12 as QQC2
|
2020-05-25 20:34:26 +00:00
|
|
|
import QtQuick.Layouts 1.3
|
|
|
|
import Qt.labs.platform 1.1
|
2020-05-27 21:09:12 +00:00
|
|
|
import "../../../shared"
|
2020-05-25 20:34:26 +00:00
|
|
|
import "../../../imports"
|
2020-05-27 21:59:34 +00:00
|
|
|
import "./ChatColumn"
|
2020-05-25 20:34:26 +00:00
|
|
|
|
2020-05-26 18:16:07 +00:00
|
|
|
StackLayout {
|
|
|
|
property int chatGroupsListViewCount: 0
|
|
|
|
Layout.fillHeight: true
|
|
|
|
Layout.fillWidth: true
|
2020-05-25 20:34:26 +00:00
|
|
|
|
2020-05-26 18:16:07 +00:00
|
|
|
currentIndex: chatGroupsListViewCount > 0 ? 0 : 1
|
2020-05-26 15:55:32 +00:00
|
|
|
|
2020-05-26 18:16:07 +00:00
|
|
|
ColumnLayout {
|
|
|
|
id: chatColumn
|
2020-05-26 15:55:32 +00:00
|
|
|
|
2020-05-26 18:16:07 +00:00
|
|
|
RowLayout {
|
|
|
|
id: chatTopBar
|
|
|
|
Layout.alignment: Qt.AlignHCenter | Qt.AlignTop
|
2020-05-26 15:55:32 +00:00
|
|
|
Layout.fillWidth: true
|
2020-05-26 18:16:07 +00:00
|
|
|
z: 60
|
2020-05-26 15:55:32 +00:00
|
|
|
|
2020-05-27 21:59:34 +00:00
|
|
|
TopBar {}
|
2020-05-25 20:34:26 +00:00
|
|
|
}
|
|
|
|
|
2020-05-26 18:16:07 +00:00
|
|
|
RowLayout {
|
|
|
|
id: chatContainer
|
2020-05-25 20:34:26 +00:00
|
|
|
Layout.fillWidth: true
|
|
|
|
Layout.fillHeight: true
|
2020-05-26 18:16:07 +00:00
|
|
|
Layout.alignment: Qt.AlignLeft | Qt.AlignTop
|
|
|
|
|
2020-05-27 22:59:17 +00:00
|
|
|
ChatMessages {}
|
|
|
|
}
|
2020-05-25 20:34:26 +00:00
|
|
|
|
2020-05-26 18:16:07 +00:00
|
|
|
RowLayout {
|
|
|
|
id: chatInputContainer
|
2020-05-25 20:34:26 +00:00
|
|
|
height: 70
|
|
|
|
Layout.fillWidth: true
|
2020-05-26 18:16:07 +00:00
|
|
|
Layout.bottomMargin: 0
|
|
|
|
Layout.alignment: Qt.AlignLeft | Qt.AlignBottom
|
|
|
|
transformOrigin: Item.Bottom
|
2020-05-25 20:34:26 +00:00
|
|
|
|
2020-05-27 23:06:41 +00:00
|
|
|
ChatInput {}
|
2020-05-25 20:34:26 +00:00
|
|
|
}
|
2020-05-26 18:16:07 +00:00
|
|
|
}
|
|
|
|
|
2020-05-28 00:12:07 +00:00
|
|
|
EmptyChat {}
|
2020-05-25 20:34:26 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/*##^##
|
|
|
|
Designer {
|
2020-05-27 17:26:21 +00:00
|
|
|
D{i:0;formeditorColor:"#ffffff";height:770;width:800}
|
2020-05-25 20:34:26 +00:00
|
|
|
}
|
|
|
|
##^##*/
|