access dynamic key part list for editor wrappers

This commit is contained in:
Denis Rouzaud 2024-10-09 12:09:54 +02:00
parent f7a191519e
commit e4b2d591db
No known key found for this signature in database
GPG Key ID: 92CF4C78D698D715
3 changed files with 20 additions and 0 deletions

View File

@ -94,6 +94,13 @@ If not, the setting will be updated directly at each widget value change.
This must called after :py:func:`~QgsSettingsEditorWidgetWrapper.createEditor` or :py:func:`~QgsSettingsEditorWidgetWrapper.configureEditor`.
.. versionadded:: 3.40
%End
QStringList dynamicKeyPartList() const;
%Docstring
Returns the dynamic key parts
.. versionadded:: 3.40
%End

View File

@ -94,6 +94,13 @@ If not, the setting will be updated directly at each widget value change.
This must called after :py:func:`~QgsSettingsEditorWidgetWrapper.createEditor` or :py:func:`~QgsSettingsEditorWidgetWrapper.configureEditor`.
.. versionadded:: 3.40
%End
QStringList dynamicKeyPartList() const;
%Docstring
Returns the dynamic key parts
.. versionadded:: 3.40
%End

View File

@ -94,6 +94,12 @@ class GUI_EXPORT QgsSettingsEditorWidgetWrapper : public QObject
*/
void configureAutomaticUpdate( QDialog *dialog = nullptr );
/**
* Returns the dynamic key parts
* \since QGIS 3.40
*/
QStringList dynamicKeyPartList() const {return mDynamicKeyPartList;}
protected:
//! Creates the widgets