X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fbufferwidget.h;h=e467ecc4bd4c592f67b49feb43818b46559b96f8;hp=8a93a387b3815ba3584ebad1bc24957cf96b6835;hb=39328183a6a87c6eb10a9dbbffcd5d65bf154a1f;hpb=9d54503555534a2c554f09a33df6afa33d6308ec diff --git a/src/qtui/bufferwidget.h b/src/qtui/bufferwidget.h index 8a93a387..e467ecc4 100644 --- a/src/qtui/bufferwidget.h +++ b/src/qtui/bufferwidget.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2014 by the Quassel Project * + * Copyright (C) 2005-2018 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -18,8 +18,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -#ifndef BUFFERWIDGET_H_ -#define BUFFERWIDGET_H_ +#pragma once #include "ui_bufferwidget.h" @@ -42,10 +41,11 @@ public: inline ChatViewSearchBar *searchBar() const { return ui.searchBar; } void addActionsToMenu(QMenu *, const QPointF &pos); + virtual inline bool autoMarkerLineOnLostFocus() const { return _autoMarkerLineOnLostFocus; } public slots: - virtual void setMarkerLine(ChatView *view = 0, bool allowGoingBack = true); - virtual void jumpToMarkerLine(ChatView *view = 0, bool requestBacklog = true); + virtual void setMarkerLine(ChatView *view = nullptr, bool allowGoingBack = true); + virtual void jumpToMarkerLine(ChatView *view = nullptr, bool requestBacklog = true); protected: virtual AbstractChatView *createChatView(BufferId); @@ -63,6 +63,7 @@ private slots: void zoomOriginal(); void setAutoMarkerLine(const QVariant &); + void setAutoMarkerLineOnLostFocus(const QVariant &); private: Ui::BufferWidget ui; @@ -71,7 +72,5 @@ private: ChatViewSearchController *_chatViewSearchController; bool _autoMarkerLine; + bool _autoMarkerLineOnLostFocus; }; - - -#endif