X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fbufferwidget.h;h=b47cfe846230b72eb1e112a80a8cc5745a419b52;hp=4eb8b6d99a59332793db97fd64ac74efedc34187;hb=694f9bfbf7f1af19108461c7e00d133e55082bce;hpb=61c8d84d1c849373e0f115dc748ed45cff95287d diff --git a/src/qtui/bufferwidget.h b/src/qtui/bufferwidget.h index 4eb8b6d9..b47cfe84 100644 --- a/src/qtui/bufferwidget.h +++ b/src/qtui/bufferwidget.h @@ -30,46 +30,48 @@ class ChatView; class ChatViewSearchBar; class ChatViewSearchController; -class BufferWidget : public AbstractBufferContainer { - Q_OBJECT +class BufferWidget : public AbstractBufferContainer +{ + Q_OBJECT public: - BufferWidget(QWidget *parent); - ~BufferWidget(); + BufferWidget(QWidget *parent); + ~BufferWidget(); - virtual bool eventFilter(QObject *watched, QEvent *event); + virtual bool eventFilter(QObject *watched, QEvent *event); - 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); 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 = 0, bool allowGoingBack = true); + virtual void jumpToMarkerLine(ChatView *view = 0, bool requestBacklog = true); protected: - virtual AbstractChatView *createChatView(BufferId); - virtual void removeChatView(BufferId); - virtual inline bool autoMarkerLine() const { return _autoMarkerLine; } + virtual AbstractChatView *createChatView(BufferId); + virtual void removeChatView(BufferId); + virtual inline bool autoMarkerLine() const { return _autoMarkerLine; } protected slots: - virtual void currentChanged(const QModelIndex ¤t, const QModelIndex &previous); - virtual void showChatView(BufferId); + virtual void currentChanged(const QModelIndex ¤t, const QModelIndex &previous); + virtual void showChatView(BufferId); private slots: - void scrollToHighlight(QGraphicsItem *highlightItem); - void zoomIn(); - void zoomOut(); - void zoomOriginal(); + void scrollToHighlight(QGraphicsItem *highlightItem); + void zoomIn(); + void zoomOut(); + void zoomOriginal(); - void setAutoMarkerLine(const QVariant &); + void setAutoMarkerLine(const QVariant &); private: - Ui::BufferWidget ui; - QHash _chatViews; + Ui::BufferWidget ui; + QHash _chatViews; - ChatViewSearchController *_chatViewSearchController; + ChatViewSearchController *_chatViewSearchController; - bool _autoMarkerLine; + bool _autoMarkerLine; }; + #endif