Spectral/qml/Room.qml

47 lines
948 B
QML
Raw Normal View History

2018-07-08 12:54:06 +00:00
import QtQuick 2.11
2018-07-09 02:45:26 +00:00
import QtQuick.Controls 2.4
import QtQuick.Layouts 1.11
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 {
property alias connection: roomListModel.connection
2018-02-28 09:10:42 +00:00
id: page
RoomListModel {
id: roomListModel
2018-02-23 14:39:14 +00:00
}
RowLayout {
2018-02-23 14:39:14 +00:00
anchors.fill: parent
spacing: 0
ListForm {
id: roomListForm
Layout.fillHeight: true
2018-07-07 11:06:13 +00:00
Layout.preferredWidth: {
if (page.width > 560) {
return page.width * 0.4;
} else {
return 80;
}
}
Layout.maximumWidth: 360
listModel: roomListModel
}
RoomForm {
id: roomForm
Layout.fillWidth: true
Layout.fillHeight: true
currentRoom: roomListForm.currentIndex != -1 ? roomListModel.roomAt(roomListForm.currentIndex) : null
}
2018-02-23 14:39:14 +00:00
}
}