mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
(#976) Make TooltipPreviewImage non-copyable
This commit is contained in:
parent
483e177a39
commit
244252f610
2 changed files with 3 additions and 1 deletions
|
@ -8,6 +8,8 @@ namespace chatterino {
|
||||||
static TooltipPreviewImage &getInstance();
|
static TooltipPreviewImage &getInstance();
|
||||||
void setImage(ImagePtr image);
|
void setImage(ImagePtr image);
|
||||||
|
|
||||||
|
TooltipPreviewImage(const TooltipPreviewImage&) = delete;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
TooltipPreviewImage();
|
TooltipPreviewImage();
|
||||||
|
|
||||||
|
|
|
@ -1219,7 +1219,7 @@ void ChannelView::mouseMoveEvent(QMouseEvent *event)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
auto tooltipPreviewImage = TooltipPreviewImage::getInstance();
|
auto &tooltipPreviewImage = TooltipPreviewImage::getInstance();
|
||||||
auto emoteElement = dynamic_cast<const EmoteElement*>(&hoverLayoutElement->getCreator());
|
auto emoteElement = dynamic_cast<const EmoteElement*>(&hoverLayoutElement->getCreator());
|
||||||
if (emoteElement && getSettings()->emotesTooltipPreview.getValue()) {
|
if (emoteElement && getSettings()->emotesTooltipPreview.getValue()) {
|
||||||
tooltipPreviewImage.setImage(emoteElement->getEmote()->images.getImage(3.0));
|
tooltipPreviewImage.setImage(emoteElement->getEmote()->images.getImage(3.0));
|
||||||
|
|
Loading…
Reference in a new issue