mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
parent
ab9ed12850
commit
978e4bae3d
|
@ -153,6 +153,7 @@ void ChatForm::addMessage(QLabel* author, QLabel* message, QLabel* date)
|
||||||
lockSliderToBottom = scroll && scroll->value() == scroll->maximum();
|
lockSliderToBottom = scroll && scroll->value() == scroll->maximum();
|
||||||
author->setAlignment(Qt::AlignTop | Qt::AlignRight);
|
author->setAlignment(Qt::AlignTop | Qt::AlignRight);
|
||||||
date->setAlignment(Qt::AlignTop);
|
date->setAlignment(Qt::AlignTop);
|
||||||
|
message->setTextInteractionFlags(Qt::TextSelectableByMouse);
|
||||||
if (author->text() == Widget::getInstance()->getUsername())
|
if (author->text() == Widget::getInstance()->getUsername())
|
||||||
{
|
{
|
||||||
QPalette pal;
|
QPalette pal;
|
||||||
|
|
|
@ -133,6 +133,7 @@ void GroupChatForm::addMessage(QLabel* author, QLabel* message, QLabel* date)
|
||||||
lockSliderToBottom = scroll && scroll->value() == scroll->maximum();
|
lockSliderToBottom = scroll && scroll->value() == scroll->maximum();
|
||||||
author->setAlignment(Qt::AlignTop | Qt::AlignLeft);
|
author->setAlignment(Qt::AlignTop | Qt::AlignLeft);
|
||||||
date->setAlignment(Qt::AlignTop);
|
date->setAlignment(Qt::AlignTop);
|
||||||
|
message->setTextInteractionFlags(Qt::TextSelectableByMouse);
|
||||||
if (author->text() == Widget::getInstance()->getUsername())
|
if (author->text() == Widget::getInstance()->getUsername())
|
||||||
{
|
{
|
||||||
QPalette pal;
|
QPalette pal;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user