X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fcommon%2Fbufferviewconfig.h;fp=src%2Fcommon%2Fbufferviewconfig.h;h=d2542e736de87b88dbc0e8e750183615fa2bc52f;hp=71a8eab73c73ee110d6e92538734dddefb014b1d;hb=3e63cb8a6e83765069a45101b86ae9e21dcc57ad;hpb=00e1a9c29e792ba4d65dba21b7ba04131bcb13bc diff --git a/src/common/bufferviewconfig.h b/src/common/bufferviewconfig.h index 71a8eab7..d2542e73 100644 --- a/src/common/bufferviewconfig.h +++ b/src/common/bufferviewconfig.h @@ -18,8 +18,7 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * ***************************************************************************/ -#ifndef BUFFERVIEWCONFIG_H -#define BUFFERVIEWCONFIG_H +#pragma once #include "syncableobject.h" @@ -28,8 +27,8 @@ class 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,11 +42,9 @@ class BufferViewConfig : public SyncableObject Q_PROPERTY(bool showSearch READ showSearch WRITE setShowSearch) public : - BufferViewConfig(int bufferViewId, QObject *parent = 0); + BufferViewConfig(int bufferViewId, QObject *parent = 0); BufferViewConfig(int bufferViewId, const QVariantMap &properties, QObject *parent = 0); - inline virtual const QMetaObject *syncMetaObject() const { return &staticMetaObject; } - public slots: inline int bufferViewId() const { return _bufferViewId; } @@ -149,6 +146,3 @@ private: QSet _removedBuffers; QSet _temporarilyRemovedBuffers; }; - - -#endif // BUFFERVIEWCONFIG_H