Skip to content

Commit 795a792

Browse files
JuhoErvastinyalldawson
authored andcommitted
Fix format
1 parent b373c8b commit 795a792

File tree

3 files changed

+6
-20
lines changed

3 files changed

+6
-20
lines changed

src/gui/symbology/qgsextentbufferdialog.cpp

+5-14
Original file line numberDiff line numberDiff line change
@@ -35,21 +35,14 @@ QgsExtentBufferWidget::QgsExtentBufferWidget( QgsSymbol *symbol, QgsVectorLayer
3535
mExtentBufferSpinBox->setValue( mSymbol->extentBuffer() );
3636

3737
mExtentBufferUnitSelectionWidget->setShowMapScaleButton( false );
38-
mExtentBufferUnitSelectionWidget->setUnits( { Qgis::RenderUnit::Millimeters,
39-
Qgis::RenderUnit::MetersInMapUnits,
40-
Qgis::RenderUnit::MapUnits,
41-
Qgis::RenderUnit::Pixels,
42-
Qgis::RenderUnit::Points,
43-
Qgis::RenderUnit::Inches } );
38+
mExtentBufferUnitSelectionWidget->setUnits( { Qgis::RenderUnit::Millimeters, Qgis::RenderUnit::MetersInMapUnits, Qgis::RenderUnit::MapUnits, Qgis::RenderUnit::Pixels, Qgis::RenderUnit::Points, Qgis::RenderUnit::Inches } );
4439
mExtentBufferUnitSelectionWidget->setUnit( mSymbol->extentBufferSizeUnit() );
4540

46-
connect( mExtentBufferSpinBox, static_cast < void ( QgsDoubleSpinBox::* )( double ) > ( &QgsDoubleSpinBox::valueChanged ), this, [ = ]()
47-
{
41+
connect( mExtentBufferSpinBox, static_cast<void ( QgsDoubleSpinBox::* )( double )>( &QgsDoubleSpinBox::valueChanged ), this, [=]() {
4842
emit widgetChanged();
4943
} );
5044

51-
connect( mExtentBufferUnitSelectionWidget, &QgsUnitSelectionWidget::changed, this, [ = ]()
52-
{
45+
connect( mExtentBufferUnitSelectionWidget, &QgsUnitSelectionWidget::changed, this, [=]() {
5346
emit widgetChanged();
5447
} );
5548

@@ -70,9 +63,8 @@ void QgsExtentBufferWidget::registerDataDefinedButton( QgsPropertyOverrideButton
7063
{
7164
// pass in nullptr to avoid id, feature and geometry variables being added
7265
// since the buffer is not evaluated per-feature
73-
button->init( static_cast< int >( key ), mSymbol->dataDefinedProperties(), QgsSymbol::propertyDefinitions(), nullptr );
74-
connect( button, &QgsPropertyOverrideButton::changed, this, [ = ]()
75-
{
66+
button->init( static_cast<int>( key ), mSymbol->dataDefinedProperties(), QgsSymbol::propertyDefinitions(), nullptr );
67+
connect( button, &QgsPropertyOverrideButton::changed, this, [=]() {
7668
emit widgetChanged();
7769
} );
7870

@@ -182,4 +174,3 @@ void QgsExtentBufferDialog::showHelp()
182174
{
183175
QgsHelp::openHelp( QStringLiteral( "working_with_vector/vector_properties.html#extent-buffer" ) );
184176
}
185-

src/gui/symbology/qgsextentbufferdialog.h

-3
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ class GUI_EXPORT QgsExtentBufferWidget : public QgsPanelWidget, public QgsExpres
3838
{
3939
Q_OBJECT
4040
public:
41-
4241
/**
4342
* Constructor for QgsExtentBufferWidget
4443
*/
@@ -102,7 +101,6 @@ class GUI_EXPORT QgsExtentBufferDialog : public QDialog
102101
{
103102
Q_OBJECT
104103
public:
105-
106104
//! Constructor for QgsExtentBufferDialog.
107105
QgsExtentBufferDialog( QgsSymbol *symbol, QgsVectorLayer *layer, QWidget *parent SIP_TRANSFERTHIS = nullptr );
108106

@@ -146,7 +144,6 @@ class GUI_EXPORT QgsExtentBufferDialog : public QDialog
146144
private slots:
147145

148146
void showHelp();
149-
150147
};
151148

152149
#endif // QGSEXTENTBUFFERDIALOG_H

src/gui/symbology/qgssymbolslistwidget.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,7 @@ void QgsSymbolsListWidget::showExtentBufferSettings()
307307
widget->setPanelTitle( tr( "Extent Buffer" ) );
308308
widget->setContext( mContext );
309309

310-
connect( widget, &QgsPanelWidget::widgetChanged, this, [ = ]()
311-
{
310+
connect( widget, &QgsPanelWidget::widgetChanged, this, [=]() {
312311
mSymbol->setExtentBuffer( widget->extentBuffer() );
313312
mSymbol->setDataDefinedProperty( QgsSymbol::Property::ExtentBuffer, widget->dataDefinedProperty() );
314313
mSymbol->setExtentBufferSizeUnit( widget->sizeUnit() );
@@ -317,7 +316,6 @@ void QgsSymbolsListWidget::showExtentBufferSettings()
317316
} );
318317

319318
panel->openPanel( widget );
320-
321319
}
322320
else
323321
{

0 commit comments

Comments
 (0)