mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-07-25 15:03:03 +02:00
Fix task completion date tooltip.
This commit is contained in:
parent
735bbef655
commit
6e77126a65
1 changed files with 9 additions and 4 deletions
|
@ -4899,21 +4899,26 @@ QString HistoryInner::tooltipText() const {
|
|||
if (const auto view = Element::Hovered()) {
|
||||
return HistoryView::DateTooltipText(view);
|
||||
}
|
||||
} else if (_mouseCursorState == CursorState::Forwarded
|
||||
}
|
||||
if (_mouseCursorState == CursorState::Forwarded
|
||||
&& _mouseAction == MouseAction::None) {
|
||||
if (const auto view = Element::Moused()) {
|
||||
if (const auto forwarded = view->data()->Get<HistoryMessageForwarded>()) {
|
||||
return forwarded->text.toString();
|
||||
}
|
||||
}
|
||||
} else if (const auto lnk = ClickHandler::getActive()) {
|
||||
}
|
||||
if (const auto lnk = ClickHandler::getActive()) {
|
||||
using namespace HistoryView::Reactions;
|
||||
const auto count = ReactionCountOfLink(_dragStateItem, lnk);
|
||||
if (count.count && count.shortened) {
|
||||
return Lang::FormatCountDecimal(count.count);
|
||||
}
|
||||
return lnk->tooltip();
|
||||
} else if (const auto view = Element::Moused()) {
|
||||
if (const auto text = lnk->tooltip(); !text.isEmpty()) {
|
||||
return text;
|
||||
}
|
||||
}
|
||||
if (const auto view = Element::Moused()) {
|
||||
StateRequest request;
|
||||
const auto local = mapFromGlobal(_mousePosition);
|
||||
const auto point = _widget->clampMousePosition(local);
|
||||
|
|
Loading…
Add table
Reference in a new issue