From 858679228a7caa60292dacb04559ad5f5a0fe066 Mon Sep 17 00:00:00 2001 From: Denis Rouzaud Date: Tue, 8 Oct 2024 18:42:08 +0200 Subject: [PATCH 1/3] make QgsSettingsTree::treeRoot() available in Python bindings --- src/core/settings/qgssettingstree.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/core/settings/qgssettingstree.h b/src/core/settings/qgssettingstree.h index 1ceeff815a25..c27fdd2a9e71 100644 --- a/src/core/settings/qgssettingstree.h +++ b/src/core/settings/qgssettingstree.h @@ -29,16 +29,14 @@ */ 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" ) ); From 96d72ebe5f12711e9df1b2689e06e90f54615cc9 Mon Sep 17 00:00:00 2001 From: Denis Rouzaud Date: Tue, 8 Oct 2024 18:50:53 +0200 Subject: [PATCH 2/3] fix layout --- src/core/settings/qgssettingstree.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/settings/qgssettingstree.h b/src/core/settings/qgssettingstree.h index c27fdd2a9e71..2ffd839bfc8f 100644 --- a/src/core/settings/qgssettingstree.h +++ b/src/core/settings/qgssettingstree.h @@ -29,6 +29,7 @@ */ class CORE_EXPORT QgsSettingsTree { + public: /** * Returns the tree root node for the settings tree From 24a382f04706ecd0578bc963bd9b3665570dc2f9 Mon Sep 17 00:00:00 2001 From: Denis Rouzaud Date: Tue, 8 Oct 2024 21:05:47 +0200 Subject: [PATCH 3/3] fix layout --- src/core/settings/qgssettingstree.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/settings/qgssettingstree.h b/src/core/settings/qgssettingstree.h index 2ffd839bfc8f..fdfcdd690522 100644 --- a/src/core/settings/qgssettingstree.h +++ b/src/core/settings/qgssettingstree.h @@ -31,6 +31,7 @@ class CORE_EXPORT QgsSettingsTree { public: + /** * Returns the tree root node for the settings tree */