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