X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatview.h;h=51522d2355152920845b5e6c9306a2ee41618d4b;hp=0265567542d44ea2a4f4c1e996a3c2f99ef3ed74;hb=a72e2b4a90ce18c58b54e111161691ba008dc47d;hpb=77176474b628e801ba94d9d50d0d961a12aa01c4 diff --git a/src/qtui/chatview.h b/src/qtui/chatview.h index 02655675..51522d23 100644 --- a/src/qtui/chatview.h +++ b/src/qtui/chatview.h @@ -65,13 +65,10 @@ public: /** Using this method more efficient than calling visibleChatLinesSorted() and taking its last element. * \return The last fully visible ChatLine in the view */ - ChatLine *lastVisibleChatLine() const; + ChatLine *lastVisibleChatLine(bool ignoreDayChange = false) const; virtual void addActionsToMenu(QMenu *, const QPointF &pos); - inline bool isMarkerLineVisible() const { return _markerLineVisible; } - inline ChatLine *markedLine() const { return _markedLine; } - //! Tell the view that this ChatLine has cached data /** ChatLines cache some layout data that should be cleared as soon as it's no * longer visible. A ChatLine caching data registers itself with this method to @@ -88,7 +85,8 @@ public slots: void zoomOriginal(); void setMarkerLineVisible(bool visible = true); - void setMarkedLine(ChatLine *line); + void setMarkerLine(MsgId msgId); + void jumpToMarkerLine(bool requestBacklog); protected: virtual bool event(QEvent *event); @@ -117,8 +115,6 @@ private: QTimer _scrollTimer; int _scrollOffset; bool _invalidateFilter; - bool _markerLineVisible; - ChatLine *_markedLine; QSet _linesWithCache; };