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

Moved position info from ItemBases to AbstractLayoutItem.

This commit is contained in:
23rd
2021-07-26 01:37:06 +03:00
parent 2256482ae0
commit c82006c6f8
7 changed files with 15 additions and 25 deletions

View File

@@ -54,13 +54,6 @@ public:
QDateTime dateTime() const;
void setPosition(int position) {
_position = position;
}
int position() const {
return _position;
}
HistoryItem *getItem() const {
return _parent;
}
@@ -94,7 +87,6 @@ private:
const not_null<HistoryItem*> _parent;
const QDateTime _dateTime;
std::unique_ptr<Checkbox> _check;
int _position = 0;
};
@@ -225,7 +217,7 @@ public:
StateRequest request) const override;
void clearHeavyPart() override;
void setPosition(int32 position);
void setPosition(int32 position) override;
protected:
float64 dataProgress() const override;