X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fbufferwidget.h;h=f5f5c3fef7e4a877383be621e64efac6981cfde1;hp=0ad7faf699bb18c781600d29beef3f08091d8f77;hb=92fc8c5b119111a35ab8423c3cbde5b2a022badf;hpb=76db8cdfbeffaaba359c8e80cf2146da9e9e7f8a diff --git a/src/qtui/bufferwidget.h b/src/qtui/bufferwidget.h index 0ad7faf6..f5f5c3fe 100644 --- a/src/qtui/bufferwidget.h +++ b/src/qtui/bufferwidget.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2013 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,6 +41,7 @@ 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); @@ -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