tdesktop/Telegram/SourceFiles/ui/text/text_utilities.cpp

21 lines
519 B
C++
Raw Normal View History

2019-06-12 15:26:04 +02:00
/*
This file is part of Telegram Desktop,
the official desktop application for the Telegram messaging service.
For license and copyright information please follow this link:
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
*/
#include "ui/text/text_utilities.h"
namespace Ui {
namespace Text {
TextWithEntities Bold(const QString &text) {
auto result = TextWithEntities{ text };
result.entities.push_back({ EntityType::Bold, 0, text.size() });
return result;
}
} // namespace Text
} // namespace Ui