1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

MaskablePixmapWidget should update() on setPixmap

Fixes our own avatar apparently not changing until qTox restarted
This commit is contained in:
Tux3 / Mlkj / !Lev.uXFMLA 2014-09-28 11:19:58 +02:00
parent 12380bc397
commit aa6fbc9e28
No known key found for this signature in database
GPG Key ID: 7E086DD661263264

View File

@ -39,6 +39,7 @@ void MaskablePixmapWidget::setClickable(bool clickable)
void MaskablePixmapWidget::setPixmap(const QPixmap &pmap)
{
pixmap = pmap.scaled(width(), height(), Qt::KeepAspectRatioByExpanding, Qt::SmoothTransformation);
update();
}
QPixmap MaskablePixmapWidget::getPixmap() const