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:
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user