Skip to content
Permalink
Browse files
Adds QgsMapToolEdit::defaultMValue()
  • Loading branch information
lbartoletti committed Apr 30, 2021
1 parent 76c0d11 commit 7c3d4d031b9f02cf36559aef5e11e78168658132
Showing with 11 additions and 0 deletions.
  1. +5 −0 src/gui/qgsmaptooledit.cpp
  2. +6 −0 src/gui/qgsmaptooledit.h
@@ -39,6 +39,11 @@ double QgsMapToolEdit::defaultZValue() const
return QgsSettingsRegistryCore::settingsDigitizingDefaultZValue.value();
}

double QgsMapToolEdit::defaultMValue() const
{
return QgsSettings().value( QStringLiteral( "/qgis/digitizing/default_m_value" ), Qgis::DEFAULT_M_COORDINATE ).toDouble();
}

QColor QgsMapToolEdit::digitizingStrokeColor()
{
return QColor( QgsSettingsRegistryCore::settingsDigitizingLineColorRed.value(),
@@ -44,6 +44,12 @@ class GUI_EXPORT QgsMapToolEdit: public QgsMapTool
*/
double defaultZValue() const;

/**
* Returns default M value
* Use for set M coordinate to new vertex for 2.5d geometries
*/
double defaultMValue() const;

private slots:
//! Vector layers' editingStopped SIGNAL will eventually trigger a clean
void connectLayers( const QList<QgsMapLayer *> &layers );

0 comments on commit 7c3d4d0

Please sign in to comment.