feat(plugins): add basic message construction (#5754)
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user