mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
fixed mouseover locations
This commit is contained in:
parent
980c0b2a93
commit
eb82f5c1e2
|
@ -298,9 +298,6 @@ void ChatWidgetView::mouseMoveEvent(QMouseEvent *event)
|
|||
return;
|
||||
}
|
||||
|
||||
auto _message = message->getMessage();
|
||||
auto user = _message->getUserName();
|
||||
|
||||
messages::Word hoverWord;
|
||||
|
||||
if (!message->tryGetWordPart(relativePos, hoverWord)) {
|
||||
|
@ -310,6 +307,8 @@ void ChatWidgetView::mouseMoveEvent(QMouseEvent *event)
|
|||
|
||||
int index = message->getSelectionIndex(relativePos);
|
||||
|
||||
qDebug() << index;
|
||||
|
||||
if (hoverWord.getLink().getIsValid()) {
|
||||
setCursor(Qt::PointingHandCursor);
|
||||
} else {
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
#include "messages/lazyloadedimage.h"
|
||||
#include "messages/messageref.h"
|
||||
#include "messages/word.h"
|
||||
#include "widgets/scrollbar.h"
|
||||
#include "widgets/accountpopup.h"
|
||||
#include "widgets/scrollbar.h"
|
||||
|
||||
#include <QPaintEvent>
|
||||
#include <QScroller>
|
||||
|
|
Loading…
Reference in a new issue