X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fuisupport%2Fabstractbuffercontainer.h;h=9c02f26e186693ee6a93f6453b39b5f96042e6ac;hb=f9cd845a9119e0abf450a91d8802f5c1822dd638;hp=249af25a0d33ce9d1442036f0a4c617bd0366f1d;hpb=694f9bfbf7f1af19108461c7e00d133e55082bce;p=quassel.git diff --git a/src/uisupport/abstractbuffercontainer.h b/src/uisupport/abstractbuffercontainer.h index 249af25a..9c02f26e 100644 --- a/src/uisupport/abstractbuffercontainer.h +++ b/src/uisupport/abstractbuffercontainer.h @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2012 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 * @@ -15,11 +15,12 @@ * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + * 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,12 @@ class AbstractChatView; class AbstractUiMsg; class Buffer; -class AbstractBufferContainer : public AbstractItemView +class UISUPPORT_EXPORT AbstractBufferContainer : public AbstractItemView { Q_OBJECT public: AbstractBufferContainer(QWidget *parent); - virtual ~AbstractBufferContainer(); inline BufferId currentBuffer() const { return _currentBuffer; } @@ -59,8 +59,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 @@ -82,9 +82,6 @@ private: class AbstractChatView { public: - virtual ~AbstractChatView() {}; + virtual ~AbstractChatView() = default; virtual MsgId lastMsgId() const = 0; }; - - -#endif