X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Fcommon%2Fbufferviewconfig.h;h=0390ddb60fbf79b026d7108272355278d908f082;hb=c194ed5fb3d15e14b9364f9796d3521910dc72fe;hp=71a8eab73c73ee110d6e92538734dddefb014b1d;hpb=e9c0076ab1da4d613cf0ef97adbb1f45fed13d47;p=quassel.git diff --git a/src/common/bufferviewconfig.h b/src/common/bufferviewconfig.h index 71a8eab7..0390ddb6 100644 --- a/src/common/bufferviewconfig.h +++ b/src/common/bufferviewconfig.h @@ -18,18 +18,19 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -#ifndef BUFFERVIEWCONFIG_H -#define BUFFERVIEWCONFIG_H +#pragma once + +#include "common-export.h" #include "syncableobject.h" #include "bufferinfo.h" #include "types.h" -class BufferViewConfig : public SyncableObject +class COMMON_EXPORT BufferViewConfig : public SyncableObject { - SYNCABLE_OBJECT Q_OBJECT + SYNCABLE_OBJECT Q_PROPERTY(QString bufferViewName READ bufferViewName WRITE setBufferViewName) Q_PROPERTY(NetworkId networkId READ networkId WRITE setNetworkId) @@ -43,10 +44,8 @@ class BufferViewConfig : public SyncableObject Q_PROPERTY(bool showSearch READ showSearch WRITE setShowSearch) public : - BufferViewConfig(int bufferViewId, QObject *parent = 0); - BufferViewConfig(int bufferViewId, const QVariantMap &properties, QObject *parent = 0); - - inline virtual const QMetaObject *syncMetaObject() const { return &staticMetaObject; } + BufferViewConfig(int bufferViewId, QObject *parent = nullptr); + BufferViewConfig(int bufferViewId, const QVariantMap &properties, QObject *parent = nullptr); public slots: inline int bufferViewId() const { return _bufferViewId; } @@ -149,6 +148,3 @@ private: QSet _removedBuffers; QSet _temporarilyRemovedBuffers; }; - - -#endif // BUFFERVIEWCONFIG_H