Only layout visible ChannelViews (#4811)
This commit is contained in:
@@ -181,6 +181,7 @@ protected:
|
||||
void mouseDoubleClickEvent(QMouseEvent *event) override;
|
||||
|
||||
void hideEvent(QHideEvent *) override;
|
||||
void showEvent(QShowEvent *event) override;
|
||||
|
||||
void handleLinkClick(QMouseEvent *event, const Link &link,
|
||||
MessageLayout *layout);
|
||||
@@ -200,11 +201,12 @@ private:
|
||||
void messageReplaced(size_t index, MessagePtr &replacement);
|
||||
void messagesUpdated();
|
||||
|
||||
void performLayout(bool causedByScrollbar = false);
|
||||
void performLayout(bool causedByScrollbar = false,
|
||||
bool causedByShow = false);
|
||||
void layoutVisibleMessages(
|
||||
const LimitedQueueSnapshot<MessageLayoutPtr> &messages);
|
||||
void updateScrollbar(const LimitedQueueSnapshot<MessageLayoutPtr> &messages,
|
||||
bool causedByScrollbar);
|
||||
bool causedByScrollbar, bool causedByShow);
|
||||
|
||||
void drawMessages(QPainter &painter);
|
||||
void setSelection(const SelectionItem &start, const SelectionItem &end);
|
||||
@@ -256,11 +258,8 @@ private:
|
||||
void showReplyThreadPopup(const MessagePtr &message);
|
||||
bool canReplyToMessages() const;
|
||||
|
||||
QTimer *layoutCooldown_{};
|
||||
bool layoutQueued_{};
|
||||
bool layoutQueued_ = false;
|
||||
|
||||
QTimer updateTimer_;
|
||||
bool updateQueued_ = false;
|
||||
bool lastMessageHasAlternateBackground_ = false;
|
||||
bool lastMessageHasAlternateBackgroundReverse_ = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user