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

Show preview on Force-Click on macOS.

This commit is contained in:
John Preston
2024-05-29 12:06:30 +04:00
parent d6e827e982
commit 2b9e7a6b25
5 changed files with 44 additions and 3 deletions

View File

@@ -123,6 +123,7 @@ public:
void resizeEmptyLabel();
[[nodiscard]] bool isUserpicPress() const;
[[nodiscard]] bool isUserpicPressOnWide() const;
[[nodiscard]] bool pressShowsPreview(bool onlyUserpic) const;
void cancelChatPreview();
void showChatPreview(bool onlyUserpic);
@@ -258,6 +259,7 @@ private:
QPoint globalPosition,
Qt::MouseButton button,
Qt::KeyboardModifiers modifiers);
void processGlobalForceClick(QPoint globalPosition);
void clearIrrelevantState();
void selectByMouse(QPoint globalPosition);
void preloadRowsData();