Skip to content

Commit

Permalink
Fix spelling
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Dec 4, 2019
1 parent 22ea01b commit d63714a
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
Expand Up @@ -29,7 +29,7 @@ Constructor for QgsLabelObstacleSettingsWidget.
:param vl: associated vector layer
%End

void setObstacleSettings( const QgsLabelObstacleSettings &settings );
void setSettings( const QgsLabelObstacleSettings &settings );
%Docstring
Sets the obstacle ``settings`` to show in the widget.

Expand Down
Expand Up @@ -13,7 +13,7 @@
class QgsLabelSettingsWidgetBase : QgsPanelWidget, protected QgsExpressionContextGenerator
{
%Docstring
Base class for widgets which allow customisation of label engine properties, such as label placement settings.
Base class for widgets which allow customization of label engine properties, such as label placement settings.

.. versionadded:: 3.12
%End
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgslabelinggui.cpp
Expand Up @@ -136,7 +136,7 @@ void QgsLabelingGui::showObstacleSettings()

QgsLabelObstacleSettingsWidget *widget = new QgsLabelObstacleSettingsWidget( nullptr, mLayer );
widget->setDataDefinedProperties( mDataDefinedProperties );
widget->setObstacleSettings( mObstacleSettings );
widget->setSettings( mObstacleSettings );
widget->setGeometryType( mLayer ? mLayer->geometryType() : QgsWkbTypes::UnknownGeometry );
widget->setContext( symbolContext );

Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgslabelobstaclesettingswidget.cpp
Expand Up @@ -42,7 +42,7 @@ QgsLabelObstacleSettingsWidget::QgsLabelObstacleSettingsWidget( QWidget *parent,

}

void QgsLabelObstacleSettingsWidget::setObstacleSettings( const QgsLabelObstacleSettings &settings )
void QgsLabelObstacleSettingsWidget::setSettings( const QgsLabelObstacleSettings &settings )
{
mBlockSignals = true;
mObstacleFactorSlider->setValue( static_cast< int >( std::round( settings.factor() * 5 ) ) );
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgslabelobstaclesettingswidget.h
Expand Up @@ -46,7 +46,7 @@ class GUI_EXPORT QgsLabelObstacleSettingsWidget : public QgsLabelSettingsWidgetB
*
* \see settings()
*/
void setObstacleSettings( const QgsLabelObstacleSettings &settings );
void setSettings( const QgsLabelObstacleSettings &settings );

/**
* Returns the obstacle settings defined by the widget.
Expand Down
4 changes: 2 additions & 2 deletions src/gui/qgslabelsettingswidgetbase.h
Expand Up @@ -31,7 +31,7 @@ class QgsPropertyOverrideButton;
/**
* \ingroup gui
* \class QgsLabelSettingsWidgetBase
* Base class for widgets which allow customisation of label engine properties, such as label placement settings.
* Base class for widgets which allow customization of label engine properties, such as label placement settings.
* \since QGIS 3.12
*/
class GUI_EXPORT QgsLabelSettingsWidgetBase : public QgsPanelWidget, protected QgsExpressionContextGenerator
Expand Down Expand Up @@ -115,7 +115,7 @@ class GUI_EXPORT QgsLabelSettingsWidgetBase : public QgsPanelWidget, protected Q

/**
* \ingroup gui
* \class QgsLabelSettingsDialog
* \class QgsLabelSettingsWidgetDialog
* A blocking dialog containing a QgsLabelSettingsWidgetBase.
* \since QGIS 3.12
*/
Expand Down

0 comments on commit d63714a

Please sign in to comment.