Skip to content

Commit

Permalink
Address review
Browse files Browse the repository at this point in the history
  • Loading branch information
nirvn committed Jun 1, 2024
1 parent 579bd2b commit 965e866
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ points that will not be part of a geometry being digitized.
%Docstring
Returns the vector layer within which construction guides are stored.

.. versionadded:: 3.38
.. versionadded:: 3.40
%End

bool showConstructionGuides() const;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ points that will not be part of a geometry being digitized.
%Docstring
Returns the vector layer within which construction guides are stored.

.. versionadded:: 3.38
.. versionadded:: 3.40
%End

bool showConstructionGuides() const;
Expand Down
8 changes: 4 additions & 4 deletions src/gui/qgsadvanceddigitizingdockwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,13 +200,13 @@ QgsAdvancedDigitizingDockWidget::QgsAdvancedDigitizingDockWidget( QgsMapCanvas *
// Construction modes
QMenu *constructionSettingsMenu = new QMenu( this );

mRecordConstructionGuides = new QAction( tr( "Record construction guides" ), constructionSettingsMenu );
mRecordConstructionGuides = new QAction( tr( "Record Construction Guides" ), constructionSettingsMenu );
mRecordConstructionGuides->setCheckable( true );
mRecordConstructionGuides->setChecked( settingsCadRecordConstructionGuides->value() );
constructionSettingsMenu->addAction( mRecordConstructionGuides );
connect( mRecordConstructionGuides, &QAction::triggered, this, [ = ]() { settingsCadRecordConstructionGuides->setValue( mRecordConstructionGuides->isChecked() ); } );

mShowConstructionGuides = new QAction( tr( "Show construction guides" ), constructionSettingsMenu );
mShowConstructionGuides = new QAction( tr( "Show Construction Guides" ), constructionSettingsMenu );
mShowConstructionGuides->setCheckable( true );
mShowConstructionGuides->setChecked( settingsCadShowConstructionGuides->value() );
constructionSettingsMenu->addAction( mShowConstructionGuides );
Expand All @@ -216,15 +216,15 @@ QgsAdvancedDigitizingDockWidget::QgsAdvancedDigitizingDockWidget( QgsMapCanvas *
updateCadPaintItem();
} );

mSnapToConstructionGuides = new QAction( tr( "Snap to visible construction guides" ), constructionSettingsMenu );
mSnapToConstructionGuides = new QAction( tr( "Snap to Visible Construction Guides" ), constructionSettingsMenu );
mSnapToConstructionGuides->setCheckable( true );
mSnapToConstructionGuides->setChecked( settingsCadSnapToConstructionGuides->value() );
constructionSettingsMenu->addAction( mSnapToConstructionGuides );
connect( mSnapToConstructionGuides, &QAction::triggered, this, [ = ]() { settingsCadSnapToConstructionGuides->setValue( mSnapToConstructionGuides->isChecked() ); } );

constructionSettingsMenu->addSeparator();

mClearConstructionGuides = new QAction( tr( "Clear construction guides" ), constructionSettingsMenu );
mClearConstructionGuides = new QAction( tr( "Clear Construction Guides" ), constructionSettingsMenu );
constructionSettingsMenu->addAction( mClearConstructionGuides );
connect( mClearConstructionGuides, &QAction::triggered, this, [ = ]()
{
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgsadvanceddigitizingdockwidget.h
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ class GUI_EXPORT QgsAdvancedDigitizingDockWidget : public QgsDockWidget, private

/**
* Returns the vector layer within which construction guides are stored.
* \since QGIS 3.38
* \since QGIS 3.40
*/
QgsVectorLayer *constructionGuidesLayer() const { return mConstructionGuidesLayer.get(); }

Expand Down

0 comments on commit 965e866

Please sign in to comment.