Skip to content

Commit 5461d3c

Browse files
committed
[needs-docs]Rename Node Editor and Node Tool (fixes #17807)
1 parent 1194c78 commit 5461d3c

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/app/nodetool/qgsnodetool.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ void QgsNodeTool::cadCanvasPressEvent( QgsMapMouseEvent *e )
407407
if ( mLastMouseMoveMatch.isValid() && mLastMouseMoveMatch.layer() )
408408
{
409409
QMenu menu;
410-
QAction *actionNodeEditor = menu.addAction( tr( "Node editor" ) );
410+
QAction *actionNodeEditor = menu.addAction( tr( "Vertex editor" ) );
411411
connect( actionNodeEditor, &QAction::triggered, this, &QgsNodeTool::showNodeEditor );
412412
menu.exec( mCanvas->mapToGlobal( e->pos() ) );
413413
}

src/app/nodetool/qgsnodetool.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -362,11 +362,11 @@ class APP_EXPORT QgsNodeTool : public QgsMapToolAdvancedDigitizing
362362
//! Geometry cache for fast access to geometries
363363
QHash<const QgsVectorLayer *, QHash<QgsFeatureId, QgsGeometry> > mCache;
364364

365-
// support for node editor
365+
// support for vertex editor
366366

367367
//! most recent match when moving mouse
368368
QgsPointLocator::Match mLastMouseMoveMatch;
369-
//! Selected feature for the node editor
369+
//! Selected feature for the vertex editor
370370
std::unique_ptr<QgsSelectedFeature> mSelectedFeature;
371371
//! Dock widget which allows editing vertices
372372
std::unique_ptr<QgsNodeEditor> mNodeEditor;
@@ -376,7 +376,7 @@ class APP_EXPORT QgsNodeTool : public QgsMapToolAdvancedDigitizing
376376
//! data structure for validation of one geometry of a vector layer
377377
struct GeometryValidation
378378
{
379-
QgsNodeTool *tool = nullptr; //!< Pointer to the parent node tool (for connections / canvas)
379+
QgsNodeTool *tool = nullptr; //!< Pointer to the parent vertex tool (for connections / canvas)
380380
QgsVectorLayer *layer = nullptr; //!< Pointer to the layer of the validated geometry (for reporojection)
381381
QgsGeometryValidator *validator = nullptr; //!< Object that does validation. Non-null if active
382382
QList<QgsVertexMarker *> errorMarkers; //!< Markers created by validation

src/core/geometry/qgsgeometryutils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ QgsPoint QgsGeometryUtils::closestVertex( const QgsAbstractGeometry &geom, const
7676
{
7777
currentDist = QgsGeometryUtils::sqrDistance2D( pt, vertex );
7878
// The <= is on purpose: for geometries with closing vertices, this ensures
79-
// that the closing vertex is retuned. For the node tool, the rubberband
79+
// that the closing vertex is returned. For the vertex tool, the rubberband
8080
// of the closing vertex is above the opening vertex, hence with the <=
8181
// situations where the covered opening vertex rubberband is selected are
8282
// avoided.

src/ui/qgisapp.ui

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,7 @@
841841
</property>
842842
<property name="toolTip">
843843
<string>Move Feature(s)
844-
&lt;p&gt;Try the Node Tool if snapping is needed&lt;/p&gt;</string>
844+
&lt;p&gt;Try the Vertex Tool if snapping is needed&lt;/p&gt;</string>
845845
</property>
846846
</action>
847847
<action name="mActionReshapeFeatures">
@@ -976,7 +976,7 @@
976976
<normaloff>:/images/themes/default/mActionNodeTool.svg</normaloff>:/images/themes/default/mActionNodeTool.svg</iconset>
977977
</property>
978978
<property name="text">
979-
<string>Node Tool</string>
979+
<string>Vertex Tool</string>
980980
</property>
981981
</action>
982982
<action name="mActionRotatePointSymbols">

0 commit comments

Comments
 (0)