status-desktop/ui/StatusQ/sandbox
Pascal Precht c2f418205f feat(StatusChatList): introduce `popupMenu` property
Chat list items can open a context on right click as well, so `StatusChatList`
needs to provide an API for users to pass down a `StatusPopupMenu` accordingly.

This is now possible with a dedicated `popupMenu` proporty that can be
used as follows:

```qml
StatusChatList {
    ...
    popupMenu: StatusPopupMenu {

        property string chatId

        openHandler: function () {
            ...
        }

        StatusMenuItem {
            ...
        }
        ...
    }
}
```

As will all `popupMenu` properties in StatusQ component, having this explicit API
option enables us to have control over how triggering components (in this case chat
list items) behave when they open a context menu (e.g. keeping them highlighted as long
as the menu is active).

When defining a `chatId` property, `StatusChatList` will hydrate it with the id of
the chat list item that has triggered the menu.

If there's more logic to be executed upon opening the menu, `openHandler` serves
as a hook similar to other popup menus. Inside the hook, users have access to the
specific `chatId`.

Closes #171
2022-09-21 18:20:02 +02:00
..
android Revert "Revert "feat: can be used on tablets (#146)"" 2022-09-21 18:20:02 +02:00
scripts chore: introduce build script for sandbox app 2022-09-21 18:20:02 +02:00
Buttons.qml refactor(Controls): make use of newly introduced StatusIconSettings in button controls 2022-09-21 18:20:02 +02:00
Controls.qml feat(Components): Add StatusSlider 2022-09-21 18:20:02 +02:00
DemoApp.qml feat(StatusChatList): introduce `popupMenu` property 2022-09-21 18:20:02 +02:00
Icons.qml feat: Set up catalog app (sandbox) 2022-09-21 18:20:01 +02:00
Layout.qml feat(Components): introduce `StatusChatToolBar` 2022-09-21 18:20:02 +02:00
ListItems.qml fix(StatusListItem): ensure icon background in secondary type works correctly 2022-09-21 18:20:02 +02:00
Others.qml feat(Components): introduce `StatusRoundIcon` component 2022-09-21 18:20:02 +02:00
Popups.qml feat(Popups): Add StatusModal 2022-09-21 18:20:02 +02:00
StatusChatInfoToolBarPage.qml feat(Components): introduce `StatusChatInfoToolBar` component 2022-09-21 18:20:02 +02:00
StatusPopupMenuPage.qml feat(StatusQ.Popups): introduce StatusPopupMenu component 2022-09-21 18:20:02 +02:00
ThemeSwitch.qml chore: add tooltip to theme switch 2022-09-21 18:20:02 +02:00
handler.cpp feat: Set up catalog app (sandbox) 2022-09-21 18:20:01 +02:00
handler.h feat: Set up catalog app (sandbox) 2022-09-21 18:20:01 +02:00
main.cpp feat: Set up catalog app (sandbox) 2022-09-21 18:20:01 +02:00
main.qml feat(Popups): Add StatusModal 2022-09-21 18:20:02 +02:00
qml.qrc feat(Popups): Add StatusModal 2022-09-21 18:20:02 +02:00
sandbox.pro Revert "Revert "feat: can be used on tablets (#146)"" 2022-09-21 18:20:02 +02:00
sandboxapp.cpp Revert "Revert "feat: can be used on tablets (#146)"" 2022-09-21 18:20:02 +02:00
sandboxapp.h fix: fix crash on removing title bar 2022-09-21 18:20:02 +02:00
statuswindow.cpp Revert "Revert "feat: can be used on tablets (#146)"" 2022-09-21 18:20:02 +02:00
statuswindow.h fix: update position of window to center, add traffic lights 2022-09-21 18:20:02 +02:00
statuswindow_mac.mm fix: update position of window to center, add traffic lights 2022-09-21 18:20:02 +02:00