mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-07-26 15:33:02 +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()) {
|
if (const auto view = Element::Hovered()) {
|
||||||
return HistoryView::DateTooltipText(view);
|
return HistoryView::DateTooltipText(view);
|
||||||
}
|
}
|
||||||
} else if (_mouseCursorState == CursorState::Forwarded
|
}
|
||||||
|
if (_mouseCursorState == CursorState::Forwarded
|
||||||
&& _mouseAction == MouseAction::None) {
|
&& _mouseAction == MouseAction::None) {
|
||||||
if (const auto view = Element::Moused()) {
|
if (const auto view = Element::Moused()) {
|
||||||
if (const auto forwarded = view->data()->Get<HistoryMessageForwarded>()) {
|
if (const auto forwarded = view->data()->Get<HistoryMessageForwarded>()) {
|
||||||
return forwarded->text.toString();
|
return forwarded->text.toString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (const auto lnk = ClickHandler::getActive()) {
|
}
|
||||||
|
if (const auto lnk = ClickHandler::getActive()) {
|
||||||
using namespace HistoryView::Reactions;
|
using namespace HistoryView::Reactions;
|
||||||
const auto count = ReactionCountOfLink(_dragStateItem, lnk);
|
const auto count = ReactionCountOfLink(_dragStateItem, lnk);
|
||||||
if (count.count && count.shortened) {
|
if (count.count && count.shortened) {
|
||||||
return Lang::FormatCountDecimal(count.count);
|
return Lang::FormatCountDecimal(count.count);
|
||||||
}
|
}
|
||||||
return lnk->tooltip();
|
if (const auto text = lnk->tooltip(); !text.isEmpty()) {
|
||||||
} else if (const auto view = Element::Moused()) {
|
return text;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (const auto view = Element::Moused()) {
|
||||||
StateRequest request;
|
StateRequest request;
|
||||||
const auto local = mapFromGlobal(_mousePosition);
|
const auto local = mapFromGlobal(_mousePosition);
|
||||||
const auto point = _widget->clampMousePosition(local);
|
const auto point = _widget->clampMousePosition(local);
|
||||||
|
|
Loading…
Add table
Reference in a new issue