1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00
This commit is contained in:
krepa098 2015-01-31 18:37:20 +01:00
parent 740d62ec49
commit f288fe5c1e
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -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()