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

Use both thumbnails in photos and documents.

Fixes #5602.
This commit is contained in:
John Preston
2019-01-25 18:37:28 +04:00
parent a70e72f75d
commit a1baa23a52
56 changed files with 1358 additions and 878 deletions

View File

@@ -208,6 +208,8 @@ public:
StateRequest request) const override;
private:
void setPixFrom(not_null<Image*> image);
not_null<PhotoData*> _data;
ClickHandlerPtr _link;
@@ -241,7 +243,6 @@ private:
QString _duration;
QPixmap _pix;
bool _thumbLoaded = false;
void updateStatusText();
@@ -315,7 +316,7 @@ private:
const style::OverviewFileLayout &_st;
bool _thumbForLoaded = false;
bool _thumbLoaded = false;
QPixmap _thumb;
Text _name;