Skip to content

Commit

Permalink
make QgsSettingsTree::treeRoot() available in Python bindings (#59011)
Browse files Browse the repository at this point in the history
* make QgsSettingsTree::treeRoot() available in Python bindings

* fix layout

* fix layout
  • Loading branch information
3nids authored Oct 9, 2024
1 parent 9f605a6 commit 7999e6f
Showing 1 changed file with 2 additions and 2 deletions.
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 7999e6f

Please sign in to comment.