Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix spelling and doc
  • Loading branch information
vcloarec committed Nov 24, 2020
1 parent 39b1116 commit 740c0f7
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
8 changes: 4 additions & 4 deletions src/app/qgsmaptoolselect.cpp
Expand Up @@ -205,15 +205,15 @@ void QgsMapToolSelect::modifiersChanged( bool ctrlModifier, bool shiftModifier,
emit modeChanged( GeometryWithinIntersectWithSelection );
}

void QgsMapToolSelect::hightLightFeature( const QgsFeatureId &id, QgsVectorLayer *layer )
void QgsMapToolSelect::highlightFeature( const QgsFeatureId &id, QgsVectorLayer *layer )
{
for ( QgsHighlight *hl : mHightlights )
for ( QgsHighlight *hl : mHighlights )
delete hl;

mHightlights.clear();
mHighlights.clear();

QgsFeature feat = layer->getFeature( id );
mHightlights.append( new QgsHighlight( mCanvas, feat.geometry(), layer ) );
mHighlights.append( new QgsHighlight( mCanvas, feat.geometry(), layer ) );

}

Expand Down
4 changes: 2 additions & 2 deletions src/app/qgsmaptoolselect.h
Expand Up @@ -69,9 +69,9 @@ class APP_EXPORT QgsMapToolSelect : public QgsMapTool

void modifiersChanged( bool ctrlModifier, bool shiftModifier, bool altModifier );

void hightLightFeature( const QgsFeatureId &id, QgsVectorLayer *layer );
void highlightFeature( const QgsFeatureId &id, QgsVectorLayer *layer );

QList<QgsHighlight *> mHightlights;
QList<QgsHighlight *> mHighlights;

};

Expand Down
14 changes: 7 additions & 7 deletions src/app/qgsmaptoolselectutils.cpp
Expand Up @@ -428,7 +428,7 @@ QList<QAction *> QgsMapToolSelectUtils::QgsMapToolSelectMenuActions::actions( co

QgsMapToolSelectUtils::QgsMapToolSelectMenuActions::~QgsMapToolSelectMenuActions()
{
removeHighLight();
removeHighlight();
}

void QgsMapToolSelectUtils::QgsMapToolSelectMenuActions::selectFeature()
Expand Down Expand Up @@ -460,7 +460,7 @@ void QgsMapToolSelectUtils::QgsMapToolSelectMenuActions::selectFeature()

void QgsMapToolSelectUtils::QgsMapToolSelectMenuActions::highLightFeatures()
{
removeHighLight();
removeHighlight();

if ( !mVectorLayer )
return;
Expand Down Expand Up @@ -492,7 +492,7 @@ void QgsMapToolSelectUtils::QgsMapToolSelectMenuActions::highLightFeatures()
{
QgsHighlight *hl = new QgsHighlight( mCanvas, geom, mVectorLayer );
styleHighlight( hl );
mHighLight.append( hl );
mHighlight.append( hl );
}
}
}
Expand All @@ -502,15 +502,15 @@ void QgsMapToolSelectUtils::QgsMapToolSelectMenuActions::highLightFeatures()
void QgsMapToolSelectUtils::QgsMapToolSelectMenuActions::onLayerDestroyed()
{
mVectorLayer = nullptr;
removeHighLight();
removeHighlight();
}

void QgsMapToolSelectUtils::QgsMapToolSelectMenuActions::removeHighLight()
void QgsMapToolSelectUtils::QgsMapToolSelectMenuActions::removeHighlight()
{
for ( QgsHighlight *hl : mHighLight )
for ( QgsHighlight *hl : mHighlight )
delete hl;

mHighLight.clear();
mHighlight.clear();
}

void QgsMapToolSelectUtils::QgsMapToolSelectMenuActions::styleHighlight( QgsHighlight *highlight )
Expand Down
8 changes: 4 additions & 4 deletions src/app/qgsmaptoolselectutils.h
Expand Up @@ -140,8 +140,8 @@ namespace QgsMapToolSelectUtils

/**
* Returns action that correspond to the feature canditate to be selected.
* @param featureIds
* @return
* \param featureIds the feature ids
* \return the list ad adapted actions
*/
QList<QAction *> actions( const QgsFeatureIds &featureCanditateIds );
~QgsMapToolSelectMenuActions();
Expand All @@ -150,11 +150,11 @@ namespace QgsMapToolSelectUtils
void selectFeature();
void highLightFeatures();
void onLayerDestroyed();
void removeHighLight();
void removeHighlight();

private:
QgsMapCanvas *mCanvas = nullptr;
QList<QgsHighlight *> mHighLight;
QList<QgsHighlight *> mHighlight;
QgsVectorLayer *mVectorLayer = nullptr;
QgsVectorLayer::SelectBehavior mBehavior = QgsVectorLayer::SetSelection;

Expand Down

0 comments on commit 740c0f7

Please sign in to comment.