2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

addOlderSlice and addNewerSlice should work well with items changing inside them

This commit is contained in:
John Preston
2015-12-23 17:18:42 +03:00
parent dc72800a5e
commit 9a72293e0a
4 changed files with 91 additions and 78 deletions

View File

@@ -937,6 +937,9 @@ public:
virtual void setViewsCount(int32 count) {
}
virtual void setId(MsgId newId);
virtual void setDate(const QDateTime &date) { // for date items
this->date = date;
}
virtual void drawInDialog(Painter &p, const QRect &r, bool act, const HistoryItem *&cacheFor, Text &cache) const = 0;
virtual QString notificationHeader() const {
return QString();
@@ -2229,6 +2232,7 @@ public:
after = false;
upon = false;
}
void setDate(const QDateTime &date);
QString selectedText(uint32 selection) const {
return QString();
}