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

Use HistoryMedia as view, add Data::Media.

This commit is contained in:
John Preston
2018-01-14 19:02:25 +03:00
parent 97a9089ebf
commit 7425e80f05
66 changed files with 4463 additions and 3130 deletions

View File

@@ -20,6 +20,10 @@ namespace style {
struct RoundCheckbox;
} // namespace style
namespace Data {
class Media;
} // namespace Data
namespace Overview {
namespace Layout {
@@ -172,7 +176,7 @@ private:
};
struct Info : public RuntimeComponent<Info> {
struct Info : public RuntimeComponent<Info, LayoutItemBase> {
int top = 0;
};
@@ -325,7 +329,7 @@ class Link : public ItemBase {
public:
Link(
not_null<HistoryItem*> parent,
HistoryMedia *media);
Data::Media *media);
void initDimensions() override;
int32 resizeGetHeight(int32 width) override;