Skip to content

Commit d424841

Browse files
committed
Avoid some ugly qgis-dev-bin window titles
1 parent 1ff6b27 commit d424841

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

src/app/composer/qgscomposer.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -1588,6 +1588,7 @@ void QgsComposer::exportCompositionAsPDF( QgsComposer::OutputMode mode )
15881588
}
15891589

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

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

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

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

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

22942298
do
22952299
{

src/app/qgisapp.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -5090,6 +5090,7 @@ void QgisApp::saveAsRasterFile()
50905090
QProgressDialog pd( 0, tr( "Abort..." ), 0, 0 );
50915091
// Show the dialo immediately because cloning pipe can take some time (WCS)
50925092
pd.setLabelText( tr( "Reading raster" ) );
5093+
pd.setWindowTitle( tr( "Saving raster" ) );
50935094
pd.show();
50945095
pd.setWindowModality( Qt::WindowModal );
50955096

src/core/qgsvectorlayer.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -773,6 +773,7 @@ bool QgsVectorLayer::countSymbolFeatures( bool showProgress )
773773

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

src/plugins/heatmap/heatmap.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,8 @@ void Heatmap::run()
225225
int totalFeatures = inputLayer->featureCount();
226226
int counter = 0;
227227

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

0 commit comments

Comments
 (0)