diff options
author | Malte Brandy <malte.brandy@maralorn.de> | 2016-10-25 23:55:29 +0200 |
---|---|---|
committer | Malte Brandy <malte.brandy@maralorn.de> | 2016-10-26 00:39:00 +0200 |
commit | d350174d10eafb2dfc85bac93bf59ff9f218c61b (patch) | |
tree | 4295dad796d9fcf38179d72761f2482dc727cde3 | |
parent | 27b25141e02c32b1e53a25e82b579e6a3d8089c9 (diff) | |
download | libquotient-d350174d10eafb2dfc85bac93bf59ff9f218c61b.tar.gz libquotient-d350174d10eafb2dfc85bac93bf59ff9f218c61b.zip |
Introduce cropedAvatar
-rw-r--r-- | user.cpp | 5 | ||||
-rw-r--r-- | user.h | 1 |
2 files changed, 6 insertions, 0 deletions
@@ -81,6 +81,11 @@ QString User::displayname() const QPixmap User::avatar(int width, int height) { + return croppedAvatar(width, height); // FIXME: Return an uncropped avatar; +} + +QPixmap User::croppedAvatar(int width, int height) +{ QSize size(width, height); if( !d->avatarValid @@ -49,6 +49,7 @@ namespace QMatrixClient Q_INVOKABLE QString displayname() const; QPixmap avatar(int requestedWidth, int requestedHeight); + QPixmap croppedAvatar(int requestedWidth, int requestedHeight); void processEvent(Event* event); |