Skip to content

Commit

Permalink
Fix a couple of QT 5.15 deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso authored and nyalldawson committed Oct 27, 2020
1 parent bfdb99f commit 0b966f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/options/qgsoptions.cpp
Expand Up @@ -2801,7 +2801,7 @@ double QgsOptions::zoomFactorValue()
void QgsOptions::setZoomFactorValue()
{
// Set the percent value for zoom factor spin box. This function is for converting the decimal zoom factor value in the qgis setting to the percent zoom factor value.
if ( mSettings->value( QStringLiteral( "/qgis/zoom_factor" ), 2 ) <= 1.01 )
if ( mSettings->value( QStringLiteral( "/qgis/zoom_factor" ), 2 ).toDouble() <= 1.01 )
{
spinZoomFactor->setValue( spinZoomFactor->minimum() );
}
Expand Down
2 changes: 1 addition & 1 deletion src/server/services/wfs3/qgswfs3handlers.cpp
Expand Up @@ -773,7 +773,7 @@ QList<QgsServerQueryStringParameter> QgsWfs3CollectionsItemsHandler::parameters(
10 };
limit.setCustomValidator( [ = ]( const QgsServerApiContext &, QVariant & value ) -> bool
{
return value >= 0 && value <= maxLimit; // TODO: make this configurable!
return value.toInt() >= 0 && value.toInt() <= maxLimit; // TODO: make this configurable!
} );
params.push_back( limit );

Expand Down

0 comments on commit 0b966f0

Please sign in to comment.