X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fuisupport%2Fabstractbuffercontainer.h;fp=src%2Fuisupport%2Fabstractbuffercontainer.h;h=bf46f1078f3e0af194b369bfc22ce72d35e0396e;hp=9c02f26e186693ee6a93f6453b39b5f96042e6ac;hb=c1cf157116de7fc3da96203aa6f03c38c7ebb650;hpb=30b159cb876a9495de42e9a3e70ca050516f0805 diff --git a/src/uisupport/abstractbuffercontainer.h b/src/uisupport/abstractbuffercontainer.h index 9c02f26e..bf46f107 100644 --- a/src/uisupport/abstractbuffercontainer.h +++ b/src/uisupport/abstractbuffercontainer.h @@ -34,17 +34,17 @@ class UISUPPORT_EXPORT AbstractBufferContainer : public AbstractItemView Q_OBJECT public: - AbstractBufferContainer(QWidget *parent); + AbstractBufferContainer(QWidget* parent); inline BufferId currentBuffer() const { return _currentBuffer; } signals: void currentChanged(BufferId); - void currentChanged(const QModelIndex &); + void currentChanged(const QModelIndex&); protected: //! Create an AbstractChatView for the given BufferId and add it to the UI if necessary - virtual AbstractChatView *createChatView(BufferId) = 0; + virtual AbstractChatView* createChatView(BufferId) = 0; //! Remove a chat view from the UI and delete it /** This method shall remove the view from the UI (for example, from a QStackedWidget) if appropriate. @@ -59,8 +59,8 @@ protected: virtual inline bool autoMarkerLine() const { return true; } protected slots: - void currentChanged(const QModelIndex ¤t, const QModelIndex &previous) override; - void rowsAboutToBeRemoved(const QModelIndex &parent, int start, int end) override; + void currentChanged(const QModelIndex& current, const QModelIndex& previous) override; + void rowsAboutToBeRemoved(const QModelIndex& parent, int start, int end) override; //! Show the given chat view /** This method is called when the given chat view should be displayed. Use this e.g. for @@ -75,10 +75,9 @@ private slots: private: BufferId _currentBuffer; - QHash _chatViews; + QHash _chatViews; }; - class AbstractChatView { public: