Init RoomListModel and test sync.
This commit is contained in:
10
qml/Home.qml
10
qml/Home.qml
@@ -3,15 +3,15 @@ import QtQuick.Controls 2.3
|
||||
import "qrc:/qml/form"
|
||||
|
||||
Page {
|
||||
ContactListForm {
|
||||
id: contactListForm
|
||||
RoomListForm {
|
||||
id: roomListForm
|
||||
height: parent.height
|
||||
width: 320
|
||||
}
|
||||
|
||||
ChatForm {
|
||||
id: chatForm
|
||||
RoomForm {
|
||||
id: roomForm
|
||||
anchors.fill: parent
|
||||
anchors.leftMargin: contactListForm.width
|
||||
anchors.leftMargin: roomListForm.width
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,7 +3,9 @@ import QtQuick.Controls 2.3
|
||||
import "qrc:/qml/form"
|
||||
|
||||
Page {
|
||||
ContactListForm {
|
||||
property var roomListModel
|
||||
|
||||
RoomListForm {
|
||||
id: contactListForm
|
||||
height: parent.height
|
||||
width: 320
|
||||
@@ -130,8 +130,8 @@ ApplicationWindow {
|
||||
controller: controller
|
||||
}
|
||||
|
||||
Contact {
|
||||
|
||||
Room {
|
||||
roomListModel: controller.roomListModel
|
||||
}
|
||||
|
||||
Setting {
|
||||
|
||||
Reference in New Issue
Block a user