2018-07-12 01:44:41 +00:00
|
|
|
import QtQuick 2.9
|
|
|
|
import QtQuick.Controls 2.2
|
|
|
|
import QtQuick.Layouts 1.3
|
2018-07-07 09:38:20 +00:00
|
|
|
import Matrique 0.1
|
2018-03-05 11:11:55 +00:00
|
|
|
|
2018-02-23 14:39:14 +00:00
|
|
|
import "qrc:/qml/form"
|
|
|
|
|
|
|
|
Page {
|
2018-07-19 05:54:59 +00:00
|
|
|
property var connection
|
2018-02-28 09:10:42 +00:00
|
|
|
|
2018-07-07 09:38:20 +00:00
|
|
|
id: page
|
|
|
|
|
|
|
|
RoomListModel {
|
|
|
|
id: roomListModel
|
2018-07-19 05:54:59 +00:00
|
|
|
|
2018-07-23 14:41:18 +00:00
|
|
|
connection: page.connection
|
2018-07-19 05:54:59 +00:00
|
|
|
|
2018-07-19 08:04:09 +00:00
|
|
|
onNewMessage: trayIcon.showMessage("New message", "New message for room " + room.displayName)
|
2018-02-23 14:39:14 +00:00
|
|
|
}
|
|
|
|
|
2018-07-07 09:38:20 +00:00
|
|
|
RowLayout {
|
2018-02-23 14:39:14 +00:00
|
|
|
anchors.fill: parent
|
2018-07-07 09:38:20 +00:00
|
|
|
spacing: 0
|
|
|
|
|
2018-07-13 04:06:27 +00:00
|
|
|
RoomListForm {
|
2018-07-07 09:38:20 +00:00
|
|
|
id: roomListForm
|
|
|
|
|
|
|
|
Layout.fillHeight: true
|
2018-07-20 05:50:25 +00:00
|
|
|
Layout.preferredWidth: setting.miniMode ? 80 : page.width * 0.35
|
2018-07-20 04:14:02 +00:00
|
|
|
Layout.minimumWidth: 80
|
2018-07-07 09:38:20 +00:00
|
|
|
Layout.maximumWidth: 360
|
|
|
|
|
2018-07-19 05:54:59 +00:00
|
|
|
listModel: roomListModel
|
2018-08-06 16:17:58 +00:00
|
|
|
|
|
|
|
onEnterRoom: roomForm.currentRoom = currentRoom
|
2018-07-07 09:38:20 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
RoomForm {
|
|
|
|
id: roomForm
|
|
|
|
|
|
|
|
Layout.fillWidth: true
|
|
|
|
Layout.fillHeight: true
|
|
|
|
}
|
2018-02-23 14:39:14 +00:00
|
|
|
}
|
|
|
|
}
|