diff --git a/src/blackmisc/nwserver.cpp b/src/blackmisc/nwserver.cpp index 788d81006..e95554094 100644 --- a/src/blackmisc/nwserver.cpp +++ b/src/blackmisc/nwserver.cpp @@ -154,7 +154,7 @@ namespace BlackMisc /* * Property by index (setter) */ - void CServer::propertyByIndex(const QVariant &variant, int index) + void CServer::setPropertyByIndex(const QVariant &variant, int index) { switch (index) { diff --git a/src/blackmisc/nwserver.h b/src/blackmisc/nwserver.h index 2c86c0517..7b270b5f4 100644 --- a/src/blackmisc/nwserver.h +++ b/src/blackmisc/nwserver.h @@ -141,12 +141,12 @@ namespace BlackMisc /*! * \copydoc CValueObject::propertyByIndex(int) */ - QVariant propertyByIndex(int index) const; + QVariant propertyByIndex(int index) const override; /*! - * \copydoc CValueObject::propertyByIndex(const QVariant &, int index) + * \copydoc CValueObject::setPropertyByIndex(const QVariant &, int index) */ - void propertyByIndex(const QVariant &variant, int index); + void setPropertyByIndex(const QVariant &variant, int index) override; /*! * \copydoc CValueObject::propertyByIndexAsString() diff --git a/src/blackmisc/nwuser.cpp b/src/blackmisc/nwuser.cpp index 4106a010f..107a8b8b1 100644 --- a/src/blackmisc/nwuser.cpp +++ b/src/blackmisc/nwuser.cpp @@ -182,7 +182,7 @@ namespace BlackMisc /* * Set property as index */ - void CUser::propertyByIndex(const QVariant &variant, int index) + void CUser::setPropertyByIndex(const QVariant &variant, int index) { switch (index) { diff --git a/src/blackmisc/nwuser.h b/src/blackmisc/nwuser.h index de13e1bc6..f5441cc9e 100644 --- a/src/blackmisc/nwuser.h +++ b/src/blackmisc/nwuser.h @@ -172,10 +172,10 @@ namespace BlackMisc void syncronizeData(CUser &otherUser); //! \copydoc CValueObject::propertyByIndex(int) - QVariant propertyByIndex(int index) const; + virtual QVariant propertyByIndex(int index) const override; - //! \copydoc CValueObject::propertyByIndex(const QVariant, int) - void propertyByIndex(const QVariant &variant, int index); + //! \copydoc CValueObject::setPropertyByIndex(const QVariant, int) + virtual void setPropertyByIndex(const QVariant &variant, int index) override; protected: //! \copydoc CValueObject::convertToQString