feat(plugins): add basic message construction (#5754)

This commit is contained in:
nerix
2025-07-31 15:36:39 +02:00
committed by GitHub
parent 7e7c4112d7
commit a4478748f7
29 changed files with 2070 additions and 36 deletions
+8 -2
View File
@@ -2131,10 +2131,9 @@ void ChannelView::mouseMoveEvent(QMouseEvent *event)
element->getTooltip(), getTooltipScale(scale)));
}
}
else
else if (auto *linkElement = dynamic_cast<LinkElement *>(element))
{
auto thumbnailSize = getSettings()->thumbnailSize;
auto *linkElement = dynamic_cast<LinkElement *>(element);
if (linkElement)
{
if (linkElement->linkInfo()->isPending())
@@ -2145,6 +2144,13 @@ void ChannelView::mouseMoveEvent(QMouseEvent *event)
this->setLinkInfoTooltip(linkElement->linkInfo());
}
}
else
{
this->tooltipWidget_->setOne(TooltipEntry{
.image = nullptr,
.text = element->getTooltip(),
});
}
this->tooltipWidget_->moveTo(
event->globalPosition().toPoint() + QPoint(16, 16),