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

Selection of text in attachments: captions, web page previews.

Text/HistoryItem/HistoryMedia::getState() unified.
Text::getStateElided added. Tested with web page previews only.
This commit is contained in:
John Preston
2016-04-13 21:29:32 +03:00
parent a033e31743
commit c4a7d48d96
19 changed files with 815 additions and 674 deletions

View File

@@ -158,7 +158,7 @@ private:
ChannelId _channel;
bool _selMode;
uint32 itemSelectedValue(int32 index) const;
TextSelection itemSelectedValue(int32 index) const;
int32 _rowsLeft, _rowWidth;
@@ -209,7 +209,7 @@ private:
// selection support, like in HistoryWidget
Qt::CursorShape _cursor;
HistoryCursorState _cursorState;
typedef QMap<MsgId, uint32> SelectedItems;
using SelectedItems = QMap<MsgId, TextSelection>;
SelectedItems _selected;
enum DragAction {
NoDrag = 0x00,