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:
@@ -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,
|
||||
|
Reference in New Issue
Block a user