diff --git a/widget/form/chatform.cpp b/widget/form/chatform.cpp index 72f8fc7c3..3cf6c99e0 100644 --- a/widget/form/chatform.cpp +++ b/widget/form/chatform.cpp @@ -153,7 +153,9 @@ void ChatForm::addMessage(QLabel* author, QLabel* message, QLabel* date) lockSliderToBottom = scroll && scroll->value() == scroll->maximum(); author->setAlignment(Qt::AlignTop | Qt::AlignRight); date->setAlignment(Qt::AlignTop); - message->setTextInteractionFlags(Qt::TextSelectableByMouse); + message->setTextInteractionFlags(Qt::TextBrowserInteraction); + author->setTextInteractionFlags(Qt::TextBrowserInteraction); + date->setTextInteractionFlags(Qt::TextBrowserInteraction); if (author->text() == Widget::getInstance()->getUsername()) { QPalette pal; diff --git a/widget/form/groupchatform.cpp b/widget/form/groupchatform.cpp index e30f65b87..ea3496f2c 100644 --- a/widget/form/groupchatform.cpp +++ b/widget/form/groupchatform.cpp @@ -133,7 +133,9 @@ void GroupChatForm::addMessage(QLabel* author, QLabel* message, QLabel* date) lockSliderToBottom = scroll && scroll->value() == scroll->maximum(); author->setAlignment(Qt::AlignTop | Qt::AlignLeft); date->setAlignment(Qt::AlignTop); - message->setTextInteractionFlags(Qt::TextSelectableByMouse); + message->setTextInteractionFlags(Qt::TextBrowserInteraction); + author->setTextInteractionFlags(Qt::TextBrowserInteraction); + date->setTextInteractionFlags(Qt::TextBrowserInteraction); if (author->text() == Widget::getInstance()->getUsername()) { QPalette pal;