nextcloud-desktop/src/gui/tray
Nicolas Fella f5860928d9 Make QML code more declarative by using properties
By using properties and property bindings the QML code gets more declarative rather than imperative, which is considered better.

This patch:
- Introduces a currentUserId property in UserModel that replaces the equivalent Q_INVOKABLE call
- Introduces an avatar property in User that contains the avatar's image provider url without any fallback
- Introduces new image provider urls for fallback images
- Moves the fallback image selection to QML since we want different fallbacks according to where it is used
- Wires up the necessary signals to propagate a changing avatar

Signed-off-by: Nicolas Fella <nicolas.fella@gmx.de>
2020-10-12 11:00:20 +00:00
..
ActivityData.cpp
ActivityData.h Enable the modernize-use-using check on clang-tidy 2020-08-12 18:18:57 +02:00
ActivityListModel.cpp Remove "This includes" due to tooltip order 2020-09-21 09:46:25 +00:00
ActivityListModel.h Enable the modernize-user-nullptr check on clang-tidy 2020-08-12 19:45:25 +02:00
HeaderButton.qml Create HeaderButton QML component 2020-06-15 20:52:41 +02:00
NotificationHandler.cpp Correct the object name returned by the api. 2020-09-29 18:53:28 +02:00
NotificationHandler.h
UserLine.qml Make QML code more declarative by using properties 2020-10-12 11:00:20 +00:00
UserModel.cpp Make QML code more declarative by using properties 2020-10-12 11:00:20 +00:00
UserModel.h Make QML code more declarative by using properties 2020-10-12 11:00:20 +00:00
Window.qml Make QML code more declarative by using properties 2020-10-12 11:00:20 +00:00