From acb4047b54333495cfac5f9f8f072d5ba761ea5c Mon Sep 17 00:00:00 2001 From: Dimitar Dobrev Date: Wed, 12 Mar 2014 17:12:57 +0200 Subject: [PATCH] Increased the right margin of sent messages for better visibility. --- interface/interface_en.ts | 14 +++++++------- interface/src/ui/ChatWindow.cpp | 2 +- interface/ui/chatWindow.ui | 5 ++++- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/interface/interface_en.ts b/interface/interface_en.ts index 13ed5b968b..a8f78cd36e 100644 --- a/interface/interface_en.ts +++ b/interface/interface_en.ts @@ -4,22 +4,22 @@ Application - + Export Voxels - + Sparse Voxel Octree Files (*.svo) - + Open Script - + JavaScript Files (*.js) @@ -28,19 +28,19 @@ ChatWindow - + Chat - + Connecting to XMPP... - + online now: diff --git a/interface/src/ui/ChatWindow.cpp b/interface/src/ui/ChatWindow.cpp index e7b78a897a..7a3f1ab906 100644 --- a/interface/src/ui/ChatWindow.cpp +++ b/interface/src/ui/ChatWindow.cpp @@ -191,7 +191,7 @@ void ChatWindow::messageReceived(const QXmppMessage& message) { messageLabel->setWordWrap(true); messageLabel->setTextInteractionFlags(Qt::TextBrowserInteraction); messageLabel->setOpenExternalLinks(true); - messageLabel->setStyleSheet("padding: 2px;"); + messageLabel->setStyleSheet("padding: 2px; margin-right: 20px"); messageLabel->setAlignment(Qt::AlignTop); ui->messagesFormLayout->addRow(userLabel, messageLabel); diff --git a/interface/ui/chatWindow.ui b/interface/ui/chatWindow.ui index bebfc12674..199d9b42e3 100644 --- a/interface/ui/chatWindow.ui +++ b/interface/ui/chatWindow.ui @@ -81,7 +81,7 @@ 0 0 358 - 328 + 448 @@ -124,6 +124,9 @@ Qt::ScrollBarAlwaysOff + + QAbstractScrollArea::AdjustToContents +