Skip to content
Permalink
Browse files

Fix a couple of QT 5.15 deprecation warnings

  • Loading branch information
elpaso authored and nyalldawson committed Oct 27, 2020
1 parent bfdb99f commit 0b966f021a6ff12368c1120f8f14709d018d9727
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/app/options/qgsoptions.cpp
  2. +1 −1 src/server/services/wfs3/qgswfs3handlers.cpp
@@ -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() );
}
@@ -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 );

0 comments on commit 0b966f0

Please sign in to comment.
You can’t perform that action at this time.