Show correct art on middle mouse popup (#5385)

This commit is contained in:
Zach H 2024-12-29 18:24:32 -05:00 committed by GitHub
parent dec001114a
commit dad1aea128
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 33 additions and 24 deletions

View file

@ -580,9 +580,9 @@ void ChatView::mousePressEvent(QMouseEvent *event)
case HoveredCard: {
if ((event->button() == Qt::MiddleButton) || (event->button() == Qt::LeftButton))
#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
emit showCardInfoPopup(event->globalPosition().toPoint(), hoveredContent);
emit showCardInfoPopup(event->globalPosition().toPoint(), hoveredContent, QString());
#else
emit showCardInfoPopup(event->globalPos(), hoveredContent);
emit showCardInfoPopup(event->globalPos(), hoveredContent, QString());
#endif
break;
}