2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

New profile photo edit by drag-n-drop. Animated photo button.

This commit is contained in:
John Preston
2016-05-27 13:57:11 +03:00
parent 329285a8a6
commit 3570a1cf91
26 changed files with 531 additions and 147 deletions

View File

@@ -2304,6 +2304,10 @@ namespace {
return result;
}
QPixmap pixmapFromImageInPlace(QImage &&image) {
return QPixmap::fromImage(std_::forward<QImage>(image), Qt::ColorOnly);
}
void regPhotoItem(PhotoData *data, HistoryItem *item) {
::photoItems[data].insert(item, NullType());
}