@@ -341,6 +341,7 @@ You can use :py:class:`QgsXmlUtils`.readVariant to save it to an XML document.
341
341
.. seealso:: :py:func:`toVariant`
342
342
%End
343
343
344
+
344
345
};
345
346
346
347
@@ -397,11 +398,11 @@ Copy constructor.
397
398
Returns the number of properties contained within the collection.
398
399
%End
399
400
400
- virtual QSet<int> propertyKeys() const;
401
+ QSet<int> propertyKeys() const final;
402
+ void clear() final;
403
+ bool hasProperty( int key ) const final;
401
404
402
- virtual void clear();
403
405
404
- virtual bool hasProperty( int key ) const;
405
406
406
407
407
408
virtual QgsProperty &property( int key );
@@ -416,23 +417,19 @@ Returns a reference to a matching property from the collection, if one exists.
416
417
.. seealso:: :py:func:`hasProperty`
417
418
%End
418
419
419
- virtual QVariant value( int key, const QgsExpressionContext &context, const QVariant &defaultValue = QVariant() ) const;
420
-
421
- virtual bool prepare( const QgsExpressionContext &context = QgsExpressionContext() ) const;
422
-
423
- virtual QSet< QString > referencedFields( const QgsExpressionContext &context = QgsExpressionContext(), bool ignoreContext = false ) const;
424
-
425
- virtual bool isActive( int key ) const;
426
-
427
- virtual bool hasActiveProperties() const;
420
+ QVariant value( int key, const QgsExpressionContext &context, const QVariant &defaultValue = QVariant() ) const final;
428
421
429
- virtual bool hasDynamicProperties() const;
430
422
423
+ bool prepare( const QgsExpressionContext &context = QgsExpressionContext() ) const final;
424
+ QSet< QString > referencedFields( const QgsExpressionContext &context = QgsExpressionContext(), bool ignoreContext = false ) const final;
425
+ bool isActive( int key ) const final;
431
426
432
- virtual QVariant toVariant( const QgsPropertiesDefinition &definitions ) const;
433
427
434
- virtual bool loadVariant( const QVariant &configuration, const QgsPropertiesDefinition &definitions );
428
+ bool hasActiveProperties() const final;
429
+ bool hasDynamicProperties() const final;
435
430
431
+ QVariant toVariant( const QgsPropertiesDefinition &definitions ) const final;
432
+ bool loadVariant( const QVariant &configuration, const QgsPropertiesDefinition &definitions ) final;
436
433
437
434
void setProperty( int key, const QgsProperty &property );
438
435
%Docstring
@@ -445,6 +442,7 @@ Adds a property to the collection and takes ownership of it.
445
442
will remove the property from the collection.
446
443
%End
447
444
445
+
448
446
void setProperty( int key, const QVariant &value );
449
447
%Docstring
450
448
Convenience method, creates a :py:class:`QgsStaticProperty` and stores it within the collection.
@@ -455,6 +453,7 @@ Convenience method, creates a :py:class:`QgsStaticProperty` and stores it within
455
453
:param value: static value for property
456
454
%End
457
455
456
+
458
457
};
459
458
460
459
0 commit comments