Skip to content

Commit

Permalink
Merge pull request #7330 from rouault/fix_build_with_qt_5_5
Browse files Browse the repository at this point in the history
Fix build with QT 5.5
  • Loading branch information
rouault committed Jun 28, 2018
2 parents 11faa58 + b5b720d commit 0c0981a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/app/mesh/qgsmeshrenderermeshsettingswidget.cpp
Expand Up @@ -34,7 +34,7 @@ QgsMeshRendererMeshSettingsWidget::QgsMeshRendererMeshSettingsWidget( QWidget *p
setupUi( this );

connect( mColorWidget, &QgsColorButton::colorChanged, this, &QgsMeshRendererMeshSettingsWidget::widgetChanged );
connect( mLineWidthSpinBox, QOverload<double>::of( &QgsDoubleSpinBox::valueChanged ),
connect( mLineWidthSpinBox, qgis::overload<double>::of( &QgsDoubleSpinBox::valueChanged ),
this, &QgsMeshRendererMeshSettingsWidget::widgetChanged );
}

Expand Down
7 changes: 3 additions & 4 deletions src/app/mesh/qgsmeshrenderervectorsettingswidget.cpp
Expand Up @@ -27,15 +27,14 @@ QgsMeshRendererVectorSettingsWidget::QgsMeshRendererVectorSettingsWidget( QWidge
setupUi( this );

connect( mColorWidget, &QgsColorButton::colorChanged, this, &QgsMeshRendererVectorSettingsWidget::widgetChanged );
connect( mLineWidthSpinBox, QOverload<double>::of( &QgsDoubleSpinBox::valueChanged ),
connect( mLineWidthSpinBox, qgis::overload<double>::of( &QgsDoubleSpinBox::valueChanged ),
this, &QgsMeshRendererVectorSettingsWidget::widgetChanged );

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

connect( mShaftLengthComboBox, QOverload<int>::of( &QComboBox::currentIndexChanged ),
connect( mShaftLengthComboBox, qgis::overload<int>::of( &QComboBox::currentIndexChanged ),
mShaftOptionsStackedWidget, &QStackedWidget::setCurrentIndex );

QVector<QLineEdit *> widgets;
widgets << mMinMagLineEdit << mMaxMagLineEdit
<< mHeadWidthLineEdit << mHeadLengthLineEdit
Expand Down
3 changes: 3 additions & 0 deletions tests/code_layout/test_banned_keywords.sh
Expand Up @@ -104,6 +104,9 @@ HINTS[26]="Use std::unique_ptr instead"
KEYWORDS[27]="QSharedPointer"
HINTS[27]="Use std::shared_ptr instead"

KEYWORDS[28]="QOverload"
HINTS[28]="Use qgis::overload instead"

RES=
DIR=$(git rev-parse --show-toplevel)

Expand Down

0 comments on commit 0c0981a

Please sign in to comment.