Revert "Remove virtual method from class which shouldn't be subclassed"

This reverts commit 858129ddd3072d633e0abd97e1a45fe880f4cfb2.

I remember now... that was added to avoid a totally nonsense and
otherwise unfixable crash in the sip bindings...
This commit is contained in:
Nyall Dawson 2017-04-24 12:32:28 +10:00
parent 7b3859bdea
commit cb68c982b8
2 changed files with 4 additions and 0 deletions

View File

@ -80,6 +80,8 @@ class QgsProperty
};
QgsProperty();
virtual ~QgsProperty();
static QgsProperty fromExpression( const QString& expression, bool isActive = true );
static QgsProperty fromField( const QString& fieldName, bool isActive = true );
static QgsProperty fromValue( const QVariant& value, bool isActive = true );

View File

@ -201,6 +201,8 @@ class CORE_EXPORT QgsProperty
*/
QgsProperty();
virtual ~QgsProperty() = default;
/**
* Returns a new ExpressionBasedProperty created from the specified expression.
*/