mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
cleanup
This commit is contained in:
parent
39d2bbb341
commit
d21a00e8d5
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user