status-desktop/ui/StatusQ/sandbox
B.Melnik 85ee81cfa3 feat(StatusChatList): Add drag and drop support of list items
This implements drag and drop capabilities of chat items within a `StatusChatList`.
The commit introduces a `DelegateModal` to visually reorder chat items
when they're being dragged and dropped onto a `DropArea`.

To persist the new order of chat items, various signals have been introduced to chat
list related components:

```qml
StatusChatList {

    onChatItemReordered: function (id, from, to) {
        // ...
    }
}

StatusChatListAndCategories {

    onChatItemReordered: function (categoryId, chatId, from, to) {
        // ...
    }
}
```

There's no such API on the `StatusChatListCategory` type because that one already
exposes its underlying `StatusChatList` via `chatList`, which makes the signal available.

Dragging and dropping chat items is disabled by default and needs to be turned on
using the `draggableItems` property:

```qml
StatusChatList {
    draggableItems: true
    ...
}
```
2022-09-21 18:20:03 +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 [#202] Added Picker button 2022-09-21 18:20:03 +02:00
Controls.qml chore(sandbox): introduce StatusInputPage 2022-09-21 18:20:03 +02:00
DemoApp.qml feat(StatusChatList): Add drag and drop support of list items 2022-09-21 18:20:03 +02:00
Icons.qml
Layout.qml feat(Components): introduce `StatusChatToolBar` 2022-09-21 18:20:02 +02:00
ListItems.qml feat(StatusQ.Popups) Adding SearchPopup component 2022-09-21 18:20:03 +02:00
Models.qml feat(StatusChatList): Add drag and drop support of list items 2022-09-21 18:20:03 +02:00
Others.qml feat(Components): introduce `StatusRoundIcon` component 2022-09-21 18:20:02 +02:00
Popups.qml feat(StatusModal): introduce support for identicons and letter identicons 2022-09-21 18:20:03 +02:00
StatusChatInfoToolBarPage.qml feat(Components): introduce `StatusChatInfoToolBar` component 2022-09-21 18:20:02 +02:00
StatusInputPage.qml feat(StatusInput): introduce new validator pipeline 2022-09-21 18:20:03 +02:00
StatusPopupMenuPage.qml feat(StatusQ.Popups) Adding SearchPopup component 2022-09-21 18:20:03 +02:00
ThemeSwitch.qml chore: add tooltip to theme switch 2022-09-21 18:20:02 +02:00
handler.cpp
handler.h
main.cpp
main.qml chore(sandbox): make app wider due to minimum layout width 2022-09-21 18:20:03 +02:00
qml.qrc chore(sandbox): introduce StatusInputPage 2022-09-21 18:20:03 +02:00
sandbox.pro [#202] Added Picker button 2022-09-21 18:20:03 +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