2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

documents design improved

This commit is contained in:
John Preston
2015-12-10 16:37:45 +03:00
parent 200073b826
commit 6d74140e39
9 changed files with 217 additions and 65 deletions

View File

@@ -1252,9 +1252,15 @@ private:
};
static const int32 FileStatusSizeReady = 0x7FFFFFF0;
static const int32 FileStatusSizeLoaded = 0x7FFFFFF1;
static const int32 FileStatusSizeFailed = 0x7FFFFFF2;
QString formatSizeText(qint64 size);
QString formatDownloadText(qint64 ready, qint64 total);
QString formatDurationText(qint64 duration);
QString formatDurationAndSizeText(qint64 duration, qint64 size);
QString formatPlayedText(qint64 played, qint64 duration);
class HistoryVideo : public HistoryMedia {
public:
@@ -1428,9 +1434,6 @@ private:
void setStatusSize(int32 newSize, qint64 realDuration = 0) const;
bool updateStatusText(const HistoryItem *parent) const; // returns showPause
};
static const int32 DocumentStatusSizeReady = 0x7FFFFFF0;
static const int32 DocumentStatusSizeLoaded = 0x7FFFFFF1;
static const int32 DocumentStatusSizeFailed = 0x7FFFFFF2;
class HistoryGif : public HistoryMedia {
public: