Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Apply suggestions from code review
Co-authored-by: Andrea Giudiceandrea <andreaerdna@libero.it>
(cherry picked from commit 6e941f1)
- Loading branch information
Showing
with
5 additions
and
5 deletions.
-
+2
−2
src/gui/qgsextentwidget.cpp
-
+3
−3
src/gui/qgsrasterlayersaveasdialog.cpp
|
@@ -416,8 +416,8 @@ void QgsExtentWidget::extentDrawn( const QgsRectangle &extent ) |
|
|
|
|
|
QgsRectangle QgsExtentWidget::outputExtent() const |
|
|
{ |
|
|
return QgsRectangle( QLocale().toDouble( mXMinLineEdit->text() ), QLocale().toDouble( mYMinLineEdit->text() ), |
|
|
QLocale().toDouble( mXMaxLineEdit->text() ), QLocale().toDouble( mYMaxLineEdit->text() ) ); |
|
|
return QgsRectangle( QgsDoubleValidator::toDouble( mXMinLineEdit->text() ), QgsDoubleValidator::toDouble( mYMinLineEdit->text() ), |
|
|
QgsDoubleValidator::toDouble( mXMaxLineEdit->text() ), QgsDoubleValidator::toDouble( mYMaxLineEdit->text() ) ); |
|
|
} |
|
|
|
|
|
void QgsExtentWidget::setMapCanvas( QgsMapCanvas *canvas ) |
|
|
|
@@ -354,12 +354,12 @@ int QgsRasterLayerSaveAsDialog::nRows() const |
|
|
|
|
|
double QgsRasterLayerSaveAsDialog::xResolution() const |
|
|
{ |
|
|
return QLocale().toDouble( mXResolutionLineEdit->text() ); |
|
|
return QgsDoubleValidator::toDouble( mXResolutionLineEdit->text() ); |
|
|
} |
|
|
|
|
|
double QgsRasterLayerSaveAsDialog::yResolution() const |
|
|
{ |
|
|
return QLocale().toDouble( mYResolutionLineEdit->text() ); |
|
|
return QgsDoubleValidator::toDouble( mYResolutionLineEdit->text() ); |
|
|
} |
|
|
|
|
|
int QgsRasterLayerSaveAsDialog::maximumTileSizeX() const |
|
@@ -855,7 +855,7 @@ double QgsRasterLayerSaveAsDialog::noDataCellValue( int row, int column ) const |
|
|
{ |
|
|
return std::numeric_limits<double>::quiet_NaN(); |
|
|
} |
|
|
return QLocale().toDouble( lineEdit->text() ); |
|
|
return QgsDoubleValidator::toDouble( lineEdit->text() ); |
|
|
} |
|
|
|
|
|
void QgsRasterLayerSaveAsDialog::adjustNoDataCellWidth( int row, int column ) |
|
|