Skip to content
Permalink
Browse files

Extended message in progress dialog + removed unused cast

  • Loading branch information
elpaso committed Nov 28, 2018
1 parent 3801e9e commit 10517c89321fcffbcace43383bc05de37405262c
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/app/qgisapp.cpp
@@ -5683,14 +5683,14 @@ void QgisApp::showRasterCalculator()
//invoke analysis library
QgsRasterCalculator rc( d.formulaString(), d.outputFile(), d.outputFormat(), d.outputRectangle(), d.outputCrs(), d.numberOfColumns(), d.numberOfRows(), d.rasterEntries() );

QProgressDialog p( tr( "Calculating…" ), tr( "Abort" ), 0, 0 );
QProgressDialog p( tr( "Calculating raster expression…" ), tr( "Abort" ), 0, 0 );
p.setWindowModality( Qt::WindowModal );
p.setMaximum( 100.0 );
QgsFeedback feedback;
connect( &feedback, &QgsFeedback::progressChanged, &p, &QProgressDialog::setValue );
connect( &p, &QProgressDialog::canceled, &feedback, &QgsFeedback::cancel );
p.show();
QgsRasterCalculator::Result res = static_cast< QgsRasterCalculator::Result >( rc.processCalculation( &feedback ) );
QgsRasterCalculator::Result res = rc.processCalculation( &feedback );
switch ( res )
{
case QgsRasterCalculator::Success:

0 comments on commit 10517c8

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