mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-11 23:05:34 +08:00
refs #124 fixed wrongly named virtual methods which failed to override virtuals in the base class,
discovered thanks to the override keyword
This commit is contained in:
@@ -154,7 +154,7 @@ namespace BlackMisc
|
|||||||
/*
|
/*
|
||||||
* Property by index (setter)
|
* Property by index (setter)
|
||||||
*/
|
*/
|
||||||
void CServer::propertyByIndex(const QVariant &variant, int index)
|
void CServer::setPropertyByIndex(const QVariant &variant, int index)
|
||||||
{
|
{
|
||||||
switch (index)
|
switch (index)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -141,12 +141,12 @@ namespace BlackMisc
|
|||||||
/*!
|
/*!
|
||||||
* \copydoc CValueObject::propertyByIndex(int)
|
* \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()
|
* \copydoc CValueObject::propertyByIndexAsString()
|
||||||
|
|||||||
@@ -182,7 +182,7 @@ namespace BlackMisc
|
|||||||
/*
|
/*
|
||||||
* Set property as index
|
* Set property as index
|
||||||
*/
|
*/
|
||||||
void CUser::propertyByIndex(const QVariant &variant, int index)
|
void CUser::setPropertyByIndex(const QVariant &variant, int index)
|
||||||
{
|
{
|
||||||
switch (index)
|
switch (index)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -172,10 +172,10 @@ namespace BlackMisc
|
|||||||
void syncronizeData(CUser &otherUser);
|
void syncronizeData(CUser &otherUser);
|
||||||
|
|
||||||
//! \copydoc CValueObject::propertyByIndex(int)
|
//! \copydoc CValueObject::propertyByIndex(int)
|
||||||
QVariant propertyByIndex(int index) const;
|
virtual QVariant propertyByIndex(int index) const override;
|
||||||
|
|
||||||
//! \copydoc CValueObject::propertyByIndex(const QVariant, int)
|
//! \copydoc CValueObject::setPropertyByIndex(const QVariant, int)
|
||||||
void propertyByIndex(const QVariant &variant, int index);
|
virtual void setPropertyByIndex(const QVariant &variant, int index) override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
//! \copydoc CValueObject::convertToQString
|
//! \copydoc CValueObject::convertToQString
|
||||||
|
|||||||
Reference in New Issue
Block a user