2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

pausing gifs when mediaview is opened, improved photos handling - download on click if autoload disabled

This commit is contained in:
John Preston
2015-12-25 16:09:14 +03:00
parent edb2a9d5f6
commit a5622cfe3b
20 changed files with 418 additions and 349 deletions

View File

@@ -734,6 +734,7 @@ public:
void automaticLoad(const HistoryItem *item);
void download();
bool loaded() const;
bool loading() const;
bool displayLoading() const;
@@ -764,8 +765,9 @@ public:
};
UploadingData *uploadingData;
// int32 cachew;
// QPixmap cache;
private:
void notifyLayoutChanged() const;
};
class PhotoLink : public ITextLink {
@@ -788,6 +790,16 @@ private:
};
class PhotoSaveLink : public PhotoLink {
TEXT_LINK_CLASS(PhotoSaveLink)
public:
PhotoSaveLink(PhotoData *photo, PeerData *peer = 0) : PhotoLink(photo, peer) {
}
void onClick(Qt::MouseButton button) const;
};
class PhotoCancelLink : public PhotoLink {
TEXT_LINK_CLASS(PhotoCancelLink)