From f288fe5c1ecee7764db24ab877038e959fbaddb1 Mon Sep 17 00:00:00 2001 From: krepa098 Date: Sat, 31 Jan 2015 18:37:20 +0100 Subject: [PATCH] tweaks --- src/chatlog/chatlog.cpp | 4 ++-- src/chatlog/content/text.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/chatlog/chatlog.cpp b/src/chatlog/chatlog.cpp index b188e1d0d..603c61e3a 100644 --- a/src/chatlog/chatlog.cpp +++ b/src/chatlog/chatlog.cpp @@ -88,7 +88,7 @@ ChatLog::ChatLog(QWidget* parent) // Updates the layout of all chat-lines after a resize workerTimer = new QTimer(this); workerTimer->setSingleShot(false); - workerTimer->setInterval(100); + workerTimer->setInterval(5); connect(workerTimer, &QTimer::timeout, this, &ChatLog::onWorkerTimeout); } @@ -697,7 +697,7 @@ void ChatLog::onWorkerTimeout() { // Fairly arbitrary but // large values will make the UI unresponsive - const int stepSize = 400; + const int stepSize = 50; layout(workerLastIndex, workerLastIndex+stepSize, useableWidth()); workerLastIndex += stepSize; diff --git a/src/chatlog/content/text.cpp b/src/chatlog/content/text.cpp index 255ddb623..6883a4662 100644 --- a/src/chatlog/content/text.cpp +++ b/src/chatlog/content/text.cpp @@ -35,7 +35,7 @@ Text::Text(const QString& txt, QFont font, bool enableElide, const QString &rwTe , defFont(font) { setText(txt); - setAcceptedMouseButtons(Qt::LeftButton | Qt::RightButton); + setAcceptedMouseButtons(Qt::LeftButton); } Text::~Text()