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

Add button to download audio files.

This commit is contained in:
John Preston
2019-03-15 16:09:05 +04:00
parent bc2b0f8392
commit d646de7184
16 changed files with 193 additions and 27 deletions

View File

@@ -29,9 +29,9 @@ class Checkbox;
class PaintContext : public PaintContextBase {
public:
PaintContext(crl::time ms, bool selecting) : PaintContextBase(ms, selecting), isAfterDate(false) {
PaintContext(crl::time ms, bool selecting) : PaintContextBase(ms, selecting) {
}
bool isAfterDate;
bool isAfterDate = false;
};
@@ -310,6 +310,12 @@ protected:
const style::RoundCheckbox &checkboxStyle() const override;
private:
[[nodiscard]] bool downloadInCorner() const;
void drawCornerDownload(Painter &p, bool selected, const PaintContext *context) const;
[[nodiscard]] TextState cornerDownloadTextState(
QPoint point,
StateRequest request) const;
not_null<DocumentData*> _data;
StatusText _status;
ClickHandlerPtr _msgl, _namel;