Skip to content

Commit

Permalink
Fix/silence qproperty-without-notify clazy check
Browse files Browse the repository at this point in the history
  • Loading branch information
Waqar144 committed Nov 24, 2023
1 parent 7ba116c commit 4ad8242
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 13 deletions.
8 changes: 4 additions & 4 deletions core/remote/remotemodelserver.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ class Message;
class RemoteModelServer : public QObject
{
Q_OBJECT
Q_PROPERTY(bool dynamicSortFilter READ proxyDynamicSortFilter WRITE setProxyDynamicSortFilter)
Q_PROPERTY(
Q_PROPERTY(bool dynamicSortFilter READ proxyDynamicSortFilter WRITE setProxyDynamicSortFilter) // clazy:exclude=qproperty-without-notify
Q_PROPERTY( // clazy:exclude=qproperty-without-notify
Qt::CaseSensitivity filterCaseSensitivity READ proxyFilterCaseSensitivity WRITE setProxyFilterCaseSensitivity)
Q_PROPERTY(int filterKeyColumn READ proxyFilterKeyColumn WRITE setProxyFilterKeyColumn)
Q_PROPERTY(int filterKeyColumn READ proxyFilterKeyColumn WRITE setProxyFilterKeyColumn) // clazy:exclude=qproperty-without-notify
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
Q_PROPERTY(QRegExp filterRegExp READ proxyFilterRegExp WRITE setProxyFilterRegExp)
using RegExpT = QRegExp;
#else
Q_PROPERTY(QRegularExpression filterRegularExpression READ proxyFilterRegExp WRITE setProxyFilterRegExp)
Q_PROPERTY(QRegularExpression filterRegularExpression READ proxyFilterRegExp WRITE setProxyFilterRegExp) // clazy:exclude=qproperty-without-notify
using RegExpT = QRegularExpression;
#endif

Expand Down
2 changes: 1 addition & 1 deletion plugins/qtivi/qtiviconstrainedvaluedelegate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ using namespace GammaRay;
class SplitDataComboBox : public QComboBox
{
Q_OBJECT
Q_PROPERTY(QVariant modelData READ currentData USER true)
Q_PROPERTY(QVariant modelData READ currentData USER true) // clazy:exclude=qproperty-without-notify

public:
explicit SplitDataComboBox(QWidget *parent = nullptr)
Expand Down
4 changes: 2 additions & 2 deletions tests/qmetaobjectvalidatortest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ Q_DECLARE_METATYPE(KnownCustomType)
class QMetaObjectValidatorTest : public QObject
{
Q_OBJECT
Q_PROPERTY(UnknownCustomType failUnknownType READ failUnknownType)
Q_PROPERTY(KnownCustomType knownType READ knownType)
Q_PROPERTY(UnknownCustomType failUnknownType READ failUnknownType CONSTANT)
Q_PROPERTY(KnownCustomType knownType READ knownType CONSTANT)
public:
static UnknownCustomType failUnknownType()
{
Expand Down
2 changes: 2 additions & 0 deletions tests/shared/propertytestobject.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

#include <QMetaType>

// clazy:excludeall=qproperty-without-notify

class Gadget
{
Q_GADGET
Expand Down
4 changes: 2 additions & 2 deletions ui/propertyeditor/propertydoublepaireditor.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class PropertyDoublePairEditor : public QWidget
class PropertyPointFEditor : public PropertyDoublePairEditor
{
Q_OBJECT
Q_PROPERTY(QPointF pointF READ pointF WRITE setPointF USER true)
Q_PROPERTY(QPointF pointF READ pointF WRITE setPointF USER true) // clazy:exclude=qproperty-without-notify
public:
explicit PropertyPointFEditor(QWidget *parent = nullptr);
QPointF pointF() const;
Expand All @@ -46,7 +46,7 @@ class PropertyPointFEditor : public PropertyDoublePairEditor
class PropertySizeFEditor : public PropertyDoublePairEditor
{
Q_OBJECT
Q_PROPERTY(QSizeF sizeF READ sizeF WRITE setSizeF USER true)
Q_PROPERTY(QSizeF sizeF READ sizeF WRITE setSizeF USER true) // clazy:exclude=qproperty-without-notify
public:
explicit PropertySizeFEditor(QWidget *parent = nullptr);
QSizeF sizeF() const;
Expand Down
2 changes: 1 addition & 1 deletion ui/propertyeditor/propertyenumeditor.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class PropertyEnumEditorModel;
class PropertyEnumEditor : public QComboBox
{
Q_OBJECT
Q_PROPERTY(GammaRay::EnumValue enumValue READ enumValue WRITE setEnumValue USER true)
Q_PROPERTY(GammaRay::EnumValue enumValue READ enumValue WRITE setEnumValue USER true) // clazy:exclude=qproperty-without-notify
public:
explicit PropertyEnumEditor(QWidget *parent = nullptr);
~PropertyEnumEditor() override;
Expand Down
2 changes: 1 addition & 1 deletion ui/propertyeditor/propertyextendededitor.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class PropertyExtendedEditor;
class PropertyExtendedEditor : public QWidget
{
Q_OBJECT
Q_PROPERTY(QVariant value READ value WRITE setValue USER true)
Q_PROPERTY(QVariant value READ value WRITE setValue USER true) // clazy:exclude=qproperty-without-notify
public:
explicit PropertyExtendedEditor(QWidget *parent = nullptr);
~PropertyExtendedEditor();
Expand Down
4 changes: 2 additions & 2 deletions ui/propertyeditor/propertyintpaireditor.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class PropertyIntPairEditor : public QWidget
class PropertyPointEditor : public PropertyIntPairEditor
{
Q_OBJECT
Q_PROPERTY(QPoint point READ point WRITE setPoint USER true)
Q_PROPERTY(QPoint point READ point WRITE setPoint USER true) // clazy:exclude=qproperty-without-notify
public:
explicit PropertyPointEditor(QWidget *parent = nullptr);

Expand All @@ -55,7 +55,7 @@ class PropertyPointEditor : public PropertyIntPairEditor
class PropertySizeEditor : public PropertyIntPairEditor
{
Q_OBJECT
Q_PROPERTY(QSize sizeValue READ sizeValue WRITE setSizeValue USER true)
Q_PROPERTY(QSize sizeValue READ sizeValue WRITE setSizeValue USER true) // clazy:exclude=qproperty-without-notify
public:
explicit PropertySizeEditor(QWidget *parent = nullptr);

Expand Down

0 comments on commit 4ad8242

Please sign in to comment.