Skip to content

Commit

Permalink
migrate /qgis/digitizing settings to /digitizing
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Feb 1, 2023
1 parent dbf2f88 commit cdc8f83
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 39 deletions.
2 changes: 1 addition & 1 deletion src/app/vertextool/qgsvertexeditor.cpp
Expand Up @@ -42,7 +42,7 @@
#include <QStackedWidget>
#include <QMenu>

const QgsSettingsEntryBool *QgsVertexEditor::settingAutoPopupVertexEditorDock = new QgsSettingsEntryBool( QStringLiteral( "auto_popup_vertex_editor_dock" ), QgsSettings::sTreeDigitizing, true, QStringLiteral( "Whether the auto-popup behavior of the vertex editor dock should be enabled" ) );
const QgsSettingsEntryBool *QgsVertexEditor::settingAutoPopupVertexEditorDock = new QgsSettingsEntryBool( QStringLiteral( "auto-popup-vertex-editor-dock" ), QgsSettings::sTreeDigitizing, true, QStringLiteral( "Whether the auto-popup behavior of the vertex editor dock should be enabled" ) );

static const int MIN_RADIUS_ROLE = Qt::UserRole + 1;

Expand Down
4 changes: 1 addition & 3 deletions src/core/settings/qgssettings.h
Expand Up @@ -92,6 +92,7 @@ class CORE_EXPORT QgsSettings : public QObject
static inline QgsSettingsTreeNode *sTreeApp = treeRoot()->createChildNode( QStringLiteral( "app" ) );
static inline QgsSettingsTreeNode *sTreeConnections = treeRoot()->createChildNode( QStringLiteral( "connections" ) );
static inline QgsSettingsTreeNode *sTreeCore = treeRoot()->createChildNode( QStringLiteral( "core" ) );
static inline QgsSettingsTreeNode *sTreeDigitizing = treeRoot()->createChildNode( QStringLiteral( "digitizing" ) );
static inline QgsSettingsTreeNode *sTreeElevationProfile = treeRoot()->createChildNode( QStringLiteral( "elevation-profile" ) );
static inline QgsSettingsTreeNode *sTreeFonts = treeRoot()->createChildNode( QStringLiteral( "fonts" ) );
static inline QgsSettingsTreeNode *sTreeGeometryValidation = treeRoot()->createChildNode( QStringLiteral( "geometry_validation" ) );
Expand All @@ -109,9 +110,6 @@ class CORE_EXPORT QgsSettings : public QObject
static inline QgsSettingsTreeNode *sTreeSvg = treeRoot()->createChildNode( QStringLiteral( "svg" ) );
static inline QgsSettingsTreeNode *sTreeWms = treeRoot()->createChildNode( QStringLiteral( "wms" ) );

// sub levels
static inline QgsSettingsTreeNode *sTreeDigitizing = sTreeQgis->createChildNode( QStringLiteral( "digitizing" ) );

#endif

/**
Expand Down

0 comments on commit cdc8f83

Please sign in to comment.