X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fuisupport%2Fabstractbuffercontainer.h;h=d0d9c8ba5424e5dbc220b74db51c352481c687fa;hb=3a3e844f9fcfd12235a0086af75ecd503b621ef4;hp=d9836544f6848fc1fe51ce241b7d5efeffe80060;hpb=1cb02004ee5973b89368bd84f234d4652794690d;p=quassel.git diff --git a/src/uisupport/abstractbuffercontainer.h b/src/uisupport/abstractbuffercontainer.h index d9836544..d0d9c8ba 100644 --- a/src/uisupport/abstractbuffercontainer.h +++ b/src/uisupport/abstractbuffercontainer.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2015 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,9 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -#ifndef ABSTRACTBUFFERCONTAINER_H_ -#define ABSTRACTBUFFERCONTAINER_H_ +#pragma once + +#include "uisupport-export.h" #include "abstractitemview.h" #include "buffermodel.h" @@ -28,13 +29,13 @@ class AbstractChatView; class AbstractUiMsg; class Buffer; -class AbstractBufferContainer : public AbstractItemView +class UISUPPORT_EXPORT AbstractBufferContainer : public AbstractItemView { Q_OBJECT public: AbstractBufferContainer(QWidget *parent); - virtual ~AbstractBufferContainer(); + ~AbstractBufferContainer() override; inline BufferId currentBuffer() const { return _currentBuffer; } @@ -59,8 +60,8 @@ protected: virtual inline bool autoMarkerLine() const { return true; } protected slots: - virtual void currentChanged(const QModelIndex ¤t, const QModelIndex &previous); - virtual void rowsAboutToBeRemoved(const QModelIndex &parent, int start, int end); + void currentChanged(const QModelIndex ¤t, 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 @@ -85,6 +86,3 @@ public: virtual ~AbstractChatView() {}; virtual MsgId lastMsgId() const = 0; }; - - -#endif