Browse Source

cleanup

pull/974/head
krepa098 11 years ago
parent
commit
d21a00e8d5
  1. 8
      src/chatlog/chatlog.cpp

8
src/chatlog/chatlog.cpp

@ -70,11 +70,6 @@ ChatLog::ChatLog(QWidget* parent) @@ -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() @@ -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…
Cancel
Save