mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-10-25 15:16:15 +00:00
Everywhere TextWithTags and TextWithEntities are used.
Copy tags from messages to clipboard, to drag mime data. Sorting entities while processing (links, monospace, mentions).
This commit is contained in:
@@ -66,6 +66,12 @@ QString ClickHandler::getExpandedLinkText(ExpandLinksMode mode, const QStringRef
|
||||
return QString();
|
||||
}
|
||||
|
||||
EntityInText ClickHandler::getEntityInText(int offset, const QStringRef &textPart) const {
|
||||
return EntityInText(EntityInTextInvalid, offset, 0);
|
||||
TextWithEntities ClickHandler::getExpandedLinkTextWithEntities(ExpandLinksMode mode, int entityOffset, const QStringRef &textPart) const {
|
||||
return { QString(), EntitiesInText() };
|
||||
}
|
||||
|
||||
TextWithEntities ClickHandler::simpleTextWithEntity(const EntityInText &entity) const {
|
||||
TextWithEntities result;
|
||||
result.entities.push_back(entity);
|
||||
return result;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user