52f5c31b3d
This commit introduce a new `StautsChatList` component that can be used to render `StatusChatListItem`s, typically for chat and community views. The component expects a `chatListItems.model` that has the following properties: ```qml ListModel { ListElement { chatId: "0" name: "#status" chatType: StatusChatListItem.Type.PublicChat muted: false hasUnreadMessages: false hasMention: false unreadMessagesCount: 0 iconColor: "blue" } ... } ``` It also emits two possible signals: - `onChatItemSelected(string id)` - `onChatItemUnmuted(string id)` Usage: ```qml import StatusQ.Components 0.1 StatusChatList { selectedChatId: "0" chatListItems.model: demoChatListItems onChatItemSelected: ... onChatItemUnmuted: ... } ``` Closes #100 |
||
---|---|---|
.. | ||
Buttons.qml | ||
Controls.qml | ||
DemoApp.qml | ||
Icons.qml | ||
Layout.qml | ||
ListItems.qml | ||
NavigationHeader.qml | ||
Others.qml | ||
StatusPopupMenuPage.qml | ||
ThemeSwitch.qml | ||
handler.cpp | ||
handler.h | ||
main.cpp | ||
main.qml | ||
qml.qrc | ||
sandbox.pro | ||
sandboxapp.cpp | ||
sandboxapp.h | ||
statuswindow.h | ||
statuswindow_mac.mm |