mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-15 00:02:52 -04:00
remove static function to return volatile function, since it's not needed anymore
This commit is contained in:
parent
e03d33ca6c
commit
3d28ce1b39
@ -339,16 +339,6 @@ Notify the form widgets that something has changed in case they
|
||||
have filter expressions that depend on the parent form scope.
|
||||
|
||||
.. versionadded:: 3.14
|
||||
%End
|
||||
|
||||
static const QSet<QString> volatileExpressionFunctions();
|
||||
%Docstring
|
||||
Static function that returns a set of names of volatile expression functions
|
||||
to determine whether a widget should be updated "realtime" or not.*
|
||||
|
||||
:return: QSet<QString> of volatile expression functions
|
||||
|
||||
.. versionadded:: 3.34.4
|
||||
%End
|
||||
|
||||
};
|
||||
|
@ -339,16 +339,6 @@ Notify the form widgets that something has changed in case they
|
||||
have filter expressions that depend on the parent form scope.
|
||||
|
||||
.. versionadded:: 3.14
|
||||
%End
|
||||
|
||||
static const QSet<QString> volatileExpressionFunctions();
|
||||
%Docstring
|
||||
Static function that returns a set of names of volatile expression functions
|
||||
to determine whether a widget should be updated "realtime" or not.*
|
||||
|
||||
:return: QSet<QString> of volatile expression functions
|
||||
|
||||
.. versionadded:: 3.34.4
|
||||
%End
|
||||
|
||||
};
|
||||
|
@ -353,15 +353,6 @@ class GUI_EXPORT QgsAttributeForm : public QWidget
|
||||
*/
|
||||
void parentFormValueChanged( const QString &attribute, const QVariant &newValue );
|
||||
|
||||
/**
|
||||
* Static function that returns a set of names of volatile expression functions
|
||||
* to determine whether a widget should be updated "realtime" or not.*
|
||||
* \returns QSet<QString> of volatile expression functions
|
||||
*
|
||||
* \since QGIS 3.34.4
|
||||
*/
|
||||
static const QSet<QString> volatileExpressionFunctions() { return QSet<QString>() << QStringLiteral( "now" ) << QStringLiteral( "rand" ) << QStringLiteral( "randf" ) << QStringLiteral( "uuid" ); }
|
||||
|
||||
private slots:
|
||||
void onAttributeChanged( const QVariant &value, const QVariantList &additionalFieldValues );
|
||||
void onAttributeAdded( int idx );
|
||||
|
@ -326,7 +326,7 @@ class TestQgsAttributeForm(QgisTestCase):
|
||||
self.assertEqual(feature.attribute('birthday'), 2014)
|
||||
# don't updated pos (because newly created feature)
|
||||
self.assertEqual(feature.attribute('pos'), 110)
|
||||
# don't updated random (becuase newly created feature)
|
||||
# don't updated random (because newly created feature)
|
||||
self.assertEqual(feature.attribute('random'), 100)
|
||||
# don't updated numbers
|
||||
self.assertEqual(feature.attribute('numbers'), [1, 10])
|
||||
@ -343,9 +343,9 @@ class TestQgsAttributeForm(QgisTestCase):
|
||||
self.assertEqual(form.currentFormFeature()['age'], 10)
|
||||
# don't update birthday
|
||||
self.assertEqual(form.currentFormFeature()['birthday'], 2014)
|
||||
# don't update pos (because new feature)
|
||||
# don't update pos (because newly created feature)
|
||||
self.assertEqual(form.currentFormFeature()['pos'], 110)
|
||||
# don't update random (becuase new feature)
|
||||
# don't update random (because newly created feature)
|
||||
self.assertEqual(form.currentFormFeature()['random'], 100)
|
||||
# don't update numbers
|
||||
self.assertEqual(form.currentFormFeature()['numbers'], [1, 10])
|
||||
|
Loading…
x
Reference in New Issue
Block a user