X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fchatview.h;h=69bc2cddecf9ff776ed522c081d9137c2c361591;hb=b83e459f4ed6deda6e46b7ae12e49e197ef3bb12;hp=b36ac7e70209013ad088ee9d1ae909893fbf4d4f;hpb=cc6e7c08709c4e761e2fd9c2e322751015497003;p=quassel.git diff --git a/src/qtui/chatview.h b/src/qtui/chatview.h index b36ac7e7..69bc2cdd 100644 --- a/src/qtui/chatview.h +++ b/src/qtui/chatview.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2019 by the Quassel Project * + * Copyright (C) 2005-2020 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -79,6 +79,17 @@ public: */ void setHasCache(ChatLine* line, bool hasCache = true); + /** + * Requests backlog if the scrollbar is not currently visible + * + * Use this whenever trying to scroll the backlog to try to ensure some text is visible. If the + * backlog does not have additional messages or those messages are filtered out, the scrollbar + * might remain invisible. + * + * @return True if the scrollbar isn't visible and a backlog request was made, otherwise false + */ + bool requestBacklogForScroll(); + public slots: inline virtual void clear() {} void zoomIn();