2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-01 06:55:58 +00:00

new (fast) PopupMenu started

This commit is contained in:
John Preston
2015-10-23 18:15:24 +02:00
parent 8dd57e2845
commit aeafcacb0c
15 changed files with 438 additions and 25 deletions

View File

@@ -2445,6 +2445,15 @@ void Text::setMarkedText(style::font font, const QString &text, const LinksInTex
_font = font;
clean();
{
// QByteArray ba = text.toUtf8();
// const char *ch = ba.constData();
// LOG(("STR: %1").arg(text));
// LOG(("BYTES: %1").arg(mb(ba.constData(), ba.size()).str()));
// for (int32 i = 0; i < text.size(); ++i) {
// LOG(("LETTER %1: '%2' - %3").arg(i).arg(text.at(i)).arg(text.at(i).unicode()));
// }
// int32 w = _font->width(text);
TextParser parser(this, text, links, options);
}
recountNaturalSize(true, options.dir);