mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
tweaks
This commit is contained in:
parent
740d62ec49
commit
f288fe5c1e
|
@ -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;
|
||||||
|
|
|
@ -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…
Reference in New Issue
Block a user