diff --git a/src/widgets/helper/channelview.cpp b/src/widgets/helper/channelview.cpp index bf7422af6..665f91b2c 100644 --- a/src/widgets/helper/channelview.cpp +++ b/src/widgets/helper/channelview.cpp @@ -110,14 +110,14 @@ ChannelView::~ChannelView() void ChannelView::queueUpdate() { - if (this->updateTimer.isActive()) { - this->updateQueued = true; - return; - } + // if (this->updateTimer.isActive()) { + // this->updateQueued = true; + // return; + // } this->repaint(); - this->updateTimer.start(); + // this->updateTimer.start(); } void ChannelView::layoutMessages() diff --git a/src/widgets/scrollbar.cpp b/src/widgets/scrollbar.cpp index 5169d2946..efde86a13 100644 --- a/src/widgets/scrollbar.cpp +++ b/src/widgets/scrollbar.cpp @@ -218,11 +218,11 @@ void Scrollbar::paintEvent(QPaintEvent *) // draw highlights auto snapshot = this->highlights.getSnapshot(); - int snapshotLength = snapshot.getLength(); + int snapshotLength = (int)snapshot.getLength(); int w = this->width(); float y = 0; float dY = (this->height() - MIN_THUMB_HEIGHT) / snapshotLength; - int highlightHeight = std::ceilf(dY); + int highlightHeight = std::ceil(dY); for (int i = 0; i < snapshotLength; i++) { ScrollbarHighlight const &highlight = snapshot[i];