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-09 15:48:58 +01:00
parent 39d2bbb341
commit d21a00e8d5

View File

@ -70,11 +70,6 @@ ChatLog::ChatLog(QWidget* parent)
selectionTimer->start();
connect(selectionTimer, &QTimer::timeout, this, &ChatLog::onSelectionTimerTimeout);
refreshTimer = new QTimer(this);
refreshTimer->setSingleShot(true);
refreshTimer->setInterval(500);
connect(refreshTimer, &QTimer::timeout, this, [this] { partialUpdate(); });
workerTimer = new QTimer(this);
workerTimer->setSingleShot(false);
workerTimer->setInterval(100);
@ -605,8 +600,7 @@ void ChatLog::checkVisibility()
void ChatLog::scrollContentsBy(int dx, int dy)
{
QGraphicsView::scrollContentsBy(dx, dy);
if(!refreshTimer->isActive())
refreshTimer->start();
partialUpdate();
checkVisibility();
}