Browse Source

tweaks

pull/974/head
krepa098 11 years ago
parent
commit
f288fe5c1e
  1. 4
      src/chatlog/chatlog.cpp
  2. 2
      src/chatlog/content/text.cpp

4
src/chatlog/chatlog.cpp

@ -88,7 +88,7 @@ ChatLog::ChatLog(QWidget* parent)
// Updates the layout of all chat-lines after a resize // Updates the layout of all chat-lines after a resize
workerTimer = new QTimer(this); workerTimer = new QTimer(this);
workerTimer->setSingleShot(false); workerTimer->setSingleShot(false);
workerTimer->setInterval(100); workerTimer->setInterval(5);
connect(workerTimer, &QTimer::timeout, this, &ChatLog::onWorkerTimeout); connect(workerTimer, &QTimer::timeout, this, &ChatLog::onWorkerTimeout);
} }
@ -697,7 +697,7 @@ void ChatLog::onWorkerTimeout()
{ {
// Fairly arbitrary but // Fairly arbitrary but
// large values will make the UI unresponsive // large values will make the UI unresponsive
const int stepSize = 400; const int stepSize = 50;
layout(workerLastIndex, workerLastIndex+stepSize, useableWidth()); layout(workerLastIndex, workerLastIndex+stepSize, useableWidth());
workerLastIndex += stepSize; workerLastIndex += stepSize;

2
src/chatlog/content/text.cpp

@ -35,7 +35,7 @@ Text::Text(const QString& txt, QFont font, bool enableElide, const QString &rwTe
, defFont(font) , defFont(font)
{ {
setText(txt); setText(txt);
setAcceptedMouseButtons(Qt::LeftButton | Qt::RightButton); setAcceptedMouseButtons(Qt::LeftButton);
} }
Text::~Text() Text::~Text()

Loading…
Cancel
Save