Index: src/qml/MainComponent.qml =================================================================== --- src/qml/MainComponent.qml +++ src/qml/MainComponent.qml @@ -74,13 +74,18 @@ Item { Layout.fillWidth: true } + ToolButton { + id: showUsersButton + text: "Users" + checkable: true + } ToolButton { iconName: "settings-configure" onClicked: menu.open(); QQC2.Menu { id: menu y: parent.height - + QQC2.MenuItem { text: i18n("Create New Channel") onTriggered: { @@ -173,6 +178,23 @@ opacity: .5 visible: appid.selectedRoom } + Flow { + width: parent.width + Repeater { + model: showUsersButton.checked ? appid.userModel : 0 + RowLayout { + Kirigami.Icon { + source: model.iconstatus + //FIXME + height: 22 + width: 22 + } + Text { + text: model.username === "" ? model.name : model.username + } + } + } + } } Clipboard { id: clipboard