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

add contact menu item added

This commit is contained in:
John Preston
2014-11-25 15:16:36 +03:00
parent 9e1d5da5a1
commit f9a9063e54
5 changed files with 50 additions and 7 deletions

View File

@@ -341,3 +341,12 @@ typedef enum {
HitTestLeft,
HitTestTopLeft,
} HitTestType;
inline QString strMakeFromLetters(const uint32 *letters, int32 len) {
QString result;
result.reserve(len);
for (int32 i = 0; i < len; ++i) {
result.push_back(QChar((((letters[i] << 16) & 0xFF) >> 8) | (letters[i] & 0xFF)));
}
return result;
}