Skip to content

Commit

Permalink
Extended message in progress dialog + removed unused cast
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Nov 28, 2018
1 parent 3801e9e commit 10517c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/qgisapp.cpp
Expand Up @@ -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:
Expand Down

0 comments on commit 10517c8

Please sign in to comment.