1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

Make all chat log selectable

This commit is contained in:
Tux3 / Mlkj / !Lev.uXFMLA 2014-06-28 00:45:17 +02:00
parent b6f9f053d6
commit e2d67e4250
2 changed files with 6 additions and 2 deletions

View File

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

View File

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