Skip to content

Commit

Permalink
make QgsSettingsTree::treeRoot() available in Python bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids authored and nyalldawson committed Oct 9, 2024
1 parent 0450678 commit d18a86b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions python/core/auto_generated/settings/qgssettingstree.sip.in
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ class QgsSettingsTree
%End
public:

static QgsSettingsTreeNode *treeRoot();
%Docstring
Returns the tree root node for the settings tree
%End


static const QgsSettingsTreeNode *node( const QString &key );
%Docstring
Expand Down
4 changes: 2 additions & 2 deletions src/core/settings/qgssettingstree.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ class CORE_EXPORT QgsSettingsTree

public:

#ifndef SIP_RUN

/**
* Returns the tree root node for the settings tree
*/
static QgsSettingsTreeNode *treeRoot();

#ifndef SIP_RUN

// only create first level here
static inline QgsSettingsTreeNode *sTreeApp = treeRoot()->createChildNode( QStringLiteral( "app" ) );
static inline QgsSettingsTreeNode *sTreeConnections = treeRoot()->createChildNode( QStringLiteral( "connections" ) );
Expand Down

0 comments on commit d18a86b

Please sign in to comment.