status-desktop/storybook/pages/UserListPanelPage.qml

48 lines
839 B
QML
Raw Normal View History

import QtQuick 2.15
import QtQuick.Controls 2.15
import AppLayouts.Chat.panels 1.0
import StatusQ 0.1
import Storybook 1.0
2022-12-06 07:55:50 +00:00
import Models 1.0
import SortFilterProxyModel 0.2
SplitView {
Logs { id: logs }
orientation: Qt.Vertical
2022-12-06 07:55:50 +00:00
UsersModel {
id: model
}
UserListPanel {
SplitView.fillWidth: true
SplitView.fillHeight: true
label: "Some label"
usersModel: SortFilterProxyModel {
sourceModel: model
proxyRoles: FastExpressionRole {
name: "compressedKey"
expression: "compressed"
}
}
}
LogsAndControlsPanel {
id: logsAndControlsPanel
SplitView.minimumHeight: 100
SplitView.preferredHeight: 200
logsView.logText: logs.logText
}
}
// category: Panels