Skip to content

Commit 0c0981a

Browse files
authoredJun 28, 2018
Merge pull request #7330 from rouault/fix_build_with_qt_5_5
Fix build with QT 5.5
2 parents 11faa58 + b5b720d commit 0c0981a

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed
 

‎src/app/mesh/qgsmeshrenderermeshsettingswidget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ QgsMeshRendererMeshSettingsWidget::QgsMeshRendererMeshSettingsWidget( QWidget *p
3434
setupUi( this );
3535

3636
connect( mColorWidget, &QgsColorButton::colorChanged, this, &QgsMeshRendererMeshSettingsWidget::widgetChanged );
37-
connect( mLineWidthSpinBox, QOverload<double>::of( &QgsDoubleSpinBox::valueChanged ),
37+
connect( mLineWidthSpinBox, qgis::overload<double>::of( &QgsDoubleSpinBox::valueChanged ),
3838
this, &QgsMeshRendererMeshSettingsWidget::widgetChanged );
3939
}
4040

‎src/app/mesh/qgsmeshrenderervectorsettingswidget.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,14 @@ QgsMeshRendererVectorSettingsWidget::QgsMeshRendererVectorSettingsWidget( QWidge
2727
setupUi( this );
2828

2929
connect( mColorWidget, &QgsColorButton::colorChanged, this, &QgsMeshRendererVectorSettingsWidget::widgetChanged );
30-
connect( mLineWidthSpinBox, QOverload<double>::of( &QgsDoubleSpinBox::valueChanged ),
30+
connect( mLineWidthSpinBox, qgis::overload<double>::of( &QgsDoubleSpinBox::valueChanged ),
3131
this, &QgsMeshRendererVectorSettingsWidget::widgetChanged );
3232

33-
connect( mShaftLengthComboBox, QOverload<int>::of( &QComboBox::currentIndexChanged ),
33+
connect( mShaftLengthComboBox, qgis::overload<int>::of( &QComboBox::currentIndexChanged ),
3434
this, &QgsMeshRendererVectorSettingsWidget::widgetChanged );
3535

36-
connect( mShaftLengthComboBox, QOverload<int>::of( &QComboBox::currentIndexChanged ),
36+
connect( mShaftLengthComboBox, qgis::overload<int>::of( &QComboBox::currentIndexChanged ),
3737
mShaftOptionsStackedWidget, &QStackedWidget::setCurrentIndex );
38-
3938
QVector<QLineEdit *> widgets;
4039
widgets << mMinMagLineEdit << mMaxMagLineEdit
4140
<< mHeadWidthLineEdit << mHeadLengthLineEdit

‎tests/code_layout/test_banned_keywords.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,9 @@ HINTS[26]="Use std::unique_ptr instead"
104104
KEYWORDS[27]="QSharedPointer"
105105
HINTS[27]="Use std::shared_ptr instead"
106106

107+
KEYWORDS[28]="QOverload"
108+
HINTS[28]="Use qgis::overload instead"
109+
107110
RES=
108111
DIR=$(git rev-parse --show-toplevel)
109112

0 commit comments

Comments
 (0)
Please sign in to comment.