X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fbufferwidget.h;h=a26040bd3213b258eaffdf70faecea11445f8f06;hb=e868433618defabcbdc078745e6d19dd9573c005;hp=3549495726917d2a0ded6755701172070997c6dd;hpb=e8a39b4c3c92e193ab861a3fea84a261bb6fbd24;p=quassel.git diff --git a/src/qtui/bufferwidget.h b/src/qtui/bufferwidget.h index 35494957..a26040bd 100644 --- a/src/qtui/bufferwidget.h +++ b/src/qtui/bufferwidget.h @@ -20,10 +20,10 @@ #pragma once -#include "ui_bufferwidget.h" - #include "abstractbuffercontainer.h" +#include "ui_bufferwidget.h" + class QGraphicsItem; class ChatView; class ChatViewSearchBar; @@ -34,42 +34,42 @@ class BufferWidget : public AbstractBufferContainer Q_OBJECT public: - BufferWidget(QWidget *parent); + BufferWidget(QWidget* parent); ~BufferWidget() override; - bool eventFilter(QObject *watched, QEvent *event) override; + bool eventFilter(QObject* watched, QEvent* event) override; - inline ChatViewSearchBar *searchBar() const { return ui.searchBar; } - void addActionsToMenu(QMenu *, const QPointF &pos); + 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 = nullptr, bool allowGoingBack = true); - virtual void jumpToMarkerLine(ChatView *view = nullptr, bool requestBacklog = true); + virtual void setMarkerLine(ChatView* view = nullptr, bool allowGoingBack = true); + virtual void jumpToMarkerLine(ChatView* view = nullptr, bool requestBacklog = true); protected: - AbstractChatView *createChatView(BufferId) override; + AbstractChatView* createChatView(BufferId) override; void removeChatView(BufferId) override; inline bool autoMarkerLine() const override { return _autoMarkerLine; } protected slots: - void currentChanged(const QModelIndex ¤t, const QModelIndex &previous) override; + void currentChanged(const QModelIndex& current, const QModelIndex& previous) override; void showChatView(BufferId) override; private slots: - void scrollToHighlight(QGraphicsItem *highlightItem); + void scrollToHighlight(QGraphicsItem* highlightItem); void zoomIn(); void zoomOut(); void zoomOriginal(); - void setAutoMarkerLine(const QVariant &); - void setAutoMarkerLineOnLostFocus(const QVariant &); + void setAutoMarkerLine(const QVariant&); + void setAutoMarkerLineOnLostFocus(const QVariant&); private: Ui::BufferWidget ui; - QHash _chatViews; + QHash _chatViews; - ChatViewSearchController *_chatViewSearchController; + ChatViewSearchController* _chatViewSearchController; bool _autoMarkerLine; bool _autoMarkerLineOnLostFocus;