From 7999e6f3074825297d091db3bfcb5b629aa78527 Mon Sep 17 00:00:00 2001 From: Denis Rouzaud Date: Wed, 9 Oct 2024 05:46:13 +0200 Subject: [PATCH] make QgsSettingsTree::treeRoot() available in Python bindings (#59011) * make QgsSettingsTree::treeRoot() available in Python bindings * fix layout * fix layout --- src/core/settings/qgssettingstree.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/settings/qgssettingstree.h b/src/core/settings/qgssettingstree.h index 1ceeff815a25..fdfcdd690522 100644 --- a/src/core/settings/qgssettingstree.h +++ b/src/core/settings/qgssettingstree.h @@ -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" ) );