fixed mouseover locations

This commit is contained in:
fourtf 2017-04-24 19:30:23 +02:00
parent 980c0b2a93
commit eb82f5c1e2
2 changed files with 3 additions and 4 deletions

View file

@ -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 {

View file

@ -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>