Skip to content
Permalink
Browse files

Avoid some ugly qgis-dev-bin window titles

  • Loading branch information
nyalldawson committed May 7, 2015
1 parent 1ff6b27 commit d4248411f945453853f5040fb43f3a9dfa539181
Showing with 8 additions and 1 deletion.
  1. +4 −0 src/app/composer/qgscomposer.cpp
  2. +1 −0 src/app/qgisapp.cpp
  3. +1 −0 src/core/qgsvectorlayer.cpp
  4. +2 −1 src/plugins/heatmap/heatmap.cpp
@@ -1588,6 +1588,7 @@ void QgsComposer::exportCompositionAsPDF( QgsComposer::OutputMode mode )
}

QProgressDialog progress( tr( "Rendering maps..." ), tr( "Abort" ), 0, atlasMap->numFeatures(), this );
progress.setWindowTitle( tr( "Exporting atlas" ) );
QApplication::setOverrideCursor( Qt::BusyCursor );

for ( int featureI = 0; featureI < atlasMap->numFeatures(); ++featureI )
@@ -1749,6 +1750,7 @@ void QgsComposer::printComposition( QgsComposer::OutputMode mode )
return;
}
QProgressDialog progress( tr( "Rendering maps..." ), tr( "Abort" ), 0, atlasMap->numFeatures(), this );
progress.setWindowTitle( tr( "Exporting atlas" ) );

for ( int i = 0; i < atlasMap->numFeatures(); ++i )
{
@@ -2016,6 +2018,7 @@ void QgsComposer::exportCompositionAsImage( QgsComposer::OutputMode mode )
}

QProgressDialog progress( tr( "Rendering maps..." ), tr( "Abort" ), 0, atlasMap->numFeatures(), this );
progress.setWindowTitle( tr( "Exporting atlas" ) );

for ( int feature = 0; feature < atlasMap->numFeatures(); ++feature )
{
@@ -2290,6 +2293,7 @@ void QgsComposer::exportCompositionAsSVG( QgsComposer::OutputMode mode )
}
}
QProgressDialog progress( tr( "Rendering maps..." ), tr( "Abort" ), 0, atlasMap->numFeatures(), this );
progress.setWindowTitle( tr( "Exporting atlas" ) );

do
{
@@ -5090,6 +5090,7 @@ void QgisApp::saveAsRasterFile()
QProgressDialog pd( 0, tr( "Abort..." ), 0, 0 );
// Show the dialo immediately because cloning pipe can take some time (WCS)
pd.setLabelText( tr( "Reading raster" ) );
pd.setWindowTitle( tr( "Saving raster" ) );
pd.show();
pd.setWindowModality( Qt::WindowModal );

@@ -773,6 +773,7 @@ bool QgsVectorLayer::countSymbolFeatures( bool showProgress )

long nFeatures = pendingFeatureCount();
QProgressDialog progressDialog( tr( "Updating feature count for layer %1" ).arg( name() ), tr( "Abort" ), 0, nFeatures );
progressDialog.setWindowTitle( tr( "QGIS" ) );
progressDialog.setWindowModality( Qt::WindowModal );
int featuresCounted = 0;

@@ -225,7 +225,8 @@ void Heatmap::run()
int totalFeatures = inputLayer->featureCount();
int counter = 0;

QProgressDialog p( tr( "Creating heatmap" ), tr( "Abort" ), 0, totalFeatures, mQGisIface->mainWindow() );
QProgressDialog p( tr( "Rendering heatmap..." ), tr( "Abort" ), 0, totalFeatures, mQGisIface->mainWindow() );
progressDialog.setWindowTitle( tr( "QGIS" ) );
p.setWindowModality( Qt::ApplicationModal );
p.show();

0 comments on commit d424841

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