Skip to content
Permalink
Browse files

Making dialog titles use Book Style Capitalization [needs-docs]

  • Loading branch information
SrNetoChan committed Jul 26, 2017
1 parent 1b9c5be commit 8d4dec5c3f2ca6169a0f0b65413687a4625c2b44
Showing with 139 additions and 139 deletions.
  1. +2 −2 src/app/composer/qgsatlascompositionwidget.cpp
  2. +7 −7 src/app/composer/qgscomposer.cpp
  3. +1 −1 src/app/composer/qgscomposerattributetablewidget.cpp
  4. +1 −1 src/app/composer/qgscomposerhtmlwidget.cpp
  5. +1 −1 src/app/composer/qgscomposerlabelwidget.cpp
  6. +1 −1 src/app/composer/qgscomposermapgridwidget.cpp
  7. +4 −4 src/app/qgisapp.cpp
  8. +1 −1 src/app/qgsaddtaborgroup.cpp
  9. +2 −2 src/app/qgsapplayertreeviewmenuprovider.cpp
  10. +2 −2 src/app/qgsattributeactiondialog.cpp
  11. +2 −2 src/app/qgsattributetabledialog.cpp
  12. +1 −1 src/app/qgsdiagramproperties.cpp
  13. +3 −3 src/app/qgsfieldsproperties.cpp
  14. +1 −1 src/app/qgsguivectorlayertools.cpp
  15. +1 −1 src/app/qgshtmlannotationdialog.cpp
  16. +1 −1 src/app/qgsmapsavedialog.cpp
  17. +1 −1 src/app/qgsprojectproperties.cpp
  18. +1 −1 src/app/qgssavestyletodbdialog.cpp
  19. +1 −1 src/app/qgsselectbyformdialog.cpp
  20. +3 −3 src/gui/attributetable/qgsdualview.cpp
  21. +1 −1 src/gui/editorwidgets/qgsvaluerelationconfigdlg.cpp
  22. +3 −3 src/gui/ogr/qgsvectorlayersaveasdialog.cpp
  23. +1 −1 src/gui/qgsexpressionbuilderwidget.cpp
  24. +1 −1 src/gui/qgsexpressionselectiondialog.cpp
  25. +1 −1 src/gui/qgsnewgeopackagelayerdialog.cpp
  26. +1 −1 src/gui/qgsnewhttpconnection.cpp
  27. +1 −1 src/gui/qgsnewnamedialog.cpp
  28. +1 −1 src/gui/qgspropertyoverridebutton.cpp
  29. +1 −1 src/gui/qgssearchquerybuilder.cpp
  30. +3 −3 src/gui/qgssublayersdialog.cpp
  31. +1 −1 src/gui/qgstextformatwidget.cpp
  32. +3 −3 src/gui/symbology-ng/qgscptcitycolorrampdialog.cpp
  33. +3 −3 src/gui/symbology-ng/qgsstyleexportimportdialog.cpp
  34. +2 −2 src/gui/symbology-ng/qgsstylesavedialog.cpp
  35. +3 −3 src/plugins/evis/eventbrowser/evisgenericeventbrowsergui.cpp
  36. +1 −1 src/plugins/geometry_checker/ui/qgsgeometrycheckerresulttab.cpp
  37. +1 −1 src/plugins/geometry_checker/ui/qgsgeometrycheckfixdialog.cpp
  38. +1 −1 src/plugins/georeferencer/qgsgeorefplugingui.cpp
  39. +1 −1 src/plugins/georeferencer/qgsimagewarper.cpp
  40. +1 −1 src/plugins/grass/qgsgrassselect.cpp
  41. +2 −2 src/providers/arcgisrest/qgsafsdataitems.cpp
  42. +2 −2 src/providers/arcgisrest/qgsamsdataitems.cpp
  43. +2 −2 src/providers/arcgisrest/qgsarcgisservicesourceselect.cpp
  44. +2 −2 src/providers/wfs/qgswfsdataitems.cpp
  45. +2 −2 src/providers/wfs/qgswfssourceselect.cpp
  46. +1 −1 src/ui/auth/qgsauthsslimporterrors.ui
  47. +1 −1 src/ui/composer/qgsattributeselectiondialogbase.ui
  48. +1 −1 src/ui/composer/qgscomposerimageexportoptions.ui
  49. +1 −1 src/ui/composer/qgscomposerlegendlayersdialogbase.ui
  50. +1 −1 src/ui/composer/qgscomposermanagerbase.ui
  51. +1 −1 src/ui/qgsaddattrdialogbase.ui
  52. +1 −1 src/ui/qgsattributeloadfrommap.ui
  53. +1 −1 src/ui/qgscolorbrewercolorrampwidgetbase.ui
  54. +1 −1 src/ui/qgscolordialog.ui
  55. +1 −1 src/ui/qgsconfigureshortcutsdialog.ui
  56. +1 −1 src/ui/qgscptcitycolorrampv2dialogbase.ui
  57. +1 −1 src/ui/qgscustomizationdialogbase.ui
  58. +1 −1 src/ui/qgsdatadefinedsizelegendwidget.ui
  59. +1 −1 src/ui/qgsdatumtransformdialogbase.ui
  60. +1 −1 src/ui/qgsdb2newconnectionbase.ui
  61. +1 −1 src/ui/qgsdbsourceselectbase.ui
  62. +1 −1 src/ui/qgsdecorationgriddialog.ui
  63. +1 −1 src/ui/qgsdelattrdialogbase.ui
  64. +1 −1 src/ui/qgsdiscoverrelationsdlgbase.ui
  65. +1 −1 src/ui/qgsdxfexportdialogbase.ui
  66. +1 −1 src/ui/qgsexpressionbuilderdialogbase.ui
  67. +1 −1 src/ui/qgsfieldcalculatorbase.ui
  68. +1 −1 src/ui/qgsformannotationdialogbase.ui
  69. +1 −1 src/ui/qgsgradientcolorrampdialogbase.ui
  70. +1 −1 src/ui/qgsgroupwmsdatadialogbase.ui
  71. +1 −1 src/ui/qgshandlebadlayersbase.ui
  72. +1 −1 src/ui/qgsjoindialogbase.ui
  73. +1 −1 src/ui/qgslabelingrulepropswidget.ui
  74. +1 −1 src/ui/qgslabelpropertydialogbase.ui
  75. +1 −1 src/ui/qgslimitedrandomcolorrampwidgetbase.ui
  76. +1 −1 src/ui/qgsludialogbase.ui
  77. +1 −1 src/ui/qgsmanageconnectionsdialogbase.ui
  78. +1 −1 src/ui/qgsmapsavedialog.ui
  79. +1 −1 src/ui/qgsmapunitscalewidgetbase.ui
  80. +1 −1 src/ui/qgsmergeattributesdialogbase.ui
  81. +1 −1 src/ui/qgsmssqlnewconnectionbase.ui
  82. +1 −1 src/ui/qgsnewhttpconnectionbase.ui
  83. +1 −1 src/ui/qgsnewogrconnectionbase.ui
  84. +1 −1 src/ui/qgsopenvectorlayerdialogbase.ui
  85. +1 −1 src/ui/qgsoraclenewconnectionbase.ui
  86. +1 −1 src/ui/qgsorderbydialogbase.ui
  87. +1 −1 src/ui/qgsorganizetablecolumnsdialog.ui
  88. +1 −1 src/ui/qgsosmdownloaddialog.ui
  89. +1 −1 src/ui/qgsosmexportdialog.ui
  90. +1 −1 src/ui/qgspgnewconnectionbase.ui
  91. +1 −1 src/ui/qgspresetcolorrampwidgetbase.ui
  92. +1 −1 src/ui/qgsprojectlayergroupdialogbase.ui
  93. +1 −1 src/ui/qgsrastercalcdialogbase.ui
  94. +1 −1 src/ui/qgsrasterlayersaveasdialogbase.ui
  95. +1 −1 src/ui/qgsrelationadddlgbase.ui
  96. +1 −1 src/ui/qgsrendererv2propsdialogbase.ui
  97. +1 −1 src/ui/qgssavetodbdialog.ui
  98. +1 −1 src/ui/qgssqlcomposerdialogbase.ui
  99. +1 −1 src/ui/qgsstyleexportimportdialogbase.ui
  100. +1 −1 src/ui/qgsstylesavedialog.ui
  101. +1 −1 src/ui/qgssublayersdialogbase.ui
  102. +1 −1 src/ui/qgstextannotationdialogbase.ui
  103. +1 −1 src/ui/qgstextformatwidgetbase.ui
  104. +1 −1 src/ui/qgsvectorlayersaveasdialogbase.ui
  105. +1 −1 src/ui/qgswmtsdimensionsbase.ui
  106. +1 −1 src/ui/symbollayer/qgsdashspacedialogbase.ui
@@ -131,7 +131,7 @@ void QgsAtlasCompositionWidget::on_mAtlasFilenameExpressionButton_clicked()

QgsExpressionContext context = mComposition->createExpressionContext();
QgsExpressionBuilderDialog exprDlg( atlasMap->coverageLayer(), mAtlasFilenamePatternEdit->text(), this, QStringLiteral( "generic" ), context );
exprDlg.setWindowTitle( tr( "Expression based filename" ) );
exprDlg.setWindowTitle( tr( "Expression Based Filename" ) );

if ( exprDlg.exec() == QDialog::Accepted )
{
@@ -304,7 +304,7 @@ void QgsAtlasCompositionWidget::on_mAtlasFeatureFilterButton_clicked()

QgsExpressionContext context = mComposition->createExpressionContext();
QgsExpressionBuilderDialog exprDlg( vl, mAtlasFeatureFilterEdit->text(), this, QStringLiteral( "generic" ), context );
exprDlg.setWindowTitle( tr( "Expression based filter" ) );
exprDlg.setWindowTitle( tr( "Expression Based Filter" ) );

if ( exprDlg.exec() == QDialog::Accepted )
{
@@ -1695,7 +1695,7 @@ void QgsComposer::exportCompositionAsPDF( QgsComposer::OutputMode mode )
}

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

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

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

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

for ( int feature = 0; feature < atlasMap->numFeatures(); ++feature )
{
@@ -2383,7 +2383,7 @@ void QgsComposer::exportCompositionAsSVG( QgsComposer::OutputMode mode )
if ( displaySVGWarning )
{
QgsMessageViewer *m = new QgsMessageViewer( this );
m->setWindowTitle( tr( "SVG warning" ) );
m->setWindowTitle( tr( "SVG Warning" ) );
m->setCheckBoxText( tr( "Don't show this message again" ) );
m->setCheckBoxState( Qt::Unchecked );
m->setCheckBoxVisible( true );
@@ -2541,7 +2541,7 @@ void QgsComposer::exportCompositionAsSVG( QgsComposer::OutputMode mode )
}
}
QProgressDialog progress( tr( "Rendering maps..." ), tr( "Abort" ), 0, atlasMap->numFeatures(), this );
progress.setWindowTitle( tr( "Exporting atlas" ) );
progress.setWindowTitle( tr( "Exporting Atlas" ) );

do
{
@@ -3429,7 +3429,7 @@ void QgsComposer::showWmsPrintingWarning()
if ( displayWMSWarning )
{
QgsMessageViewer *m = new QgsMessageViewer( this );
m->setWindowTitle( tr( "Project contains WMS layers" ) );
m->setWindowTitle( tr( "Project Contains WMS Layers" ) );
m->setMessage( tr( "Some WMS servers (e.g. UMN mapserver) have a limit for the WIDTH and HEIGHT parameter. Printing layers from such servers may exceed this limit. If this is the case, the WMS layer will not be printed" ), QgsMessageOutput::MessageText );
m->setCheckBoxText( tr( "Don't show this message again" ) );
m->setCheckBoxState( Qt::Unchecked );
@@ -3444,7 +3444,7 @@ void QgsComposer::showAdvancedEffectsWarning()
if ( ! mComposition->printAsRaster() )
{
QgsMessageViewer *m = new QgsMessageViewer( this, QgsGuiUtils::ModalDialogFlags, false );
m->setWindowTitle( tr( "Project contains composition effects" ) );
m->setWindowTitle( tr( "Project Contains Composition Effects" ) );
m->setMessage( tr( "Advanced composition effects such as blend modes or vector layer transparency are enabled in this project, which cannot be printed as vectors. Printing as a raster is recommended." ), QgsMessageOutput::MessageText );
m->setCheckBoxText( tr( "Print as raster" ) );
m->setCheckBoxState( Qt::Checked );
@@ -785,7 +785,7 @@ void QgsComposerAttributeTableWidget::on_mFeatureFilterButton_clicked()

QgsExpressionContext context = mComposerTable->createExpressionContext();
QgsExpressionBuilderDialog exprDlg( mComposerTable->sourceLayer(), mFeatureFilterEdit->text(), this, QStringLiteral( "generic" ), context );
exprDlg.setWindowTitle( tr( "Expression based filter" ) );
exprDlg.setWindowTitle( tr( "Expression Based Filter" ) );
if ( exprDlg.exec() == QDialog::Accepted )
{
QString expression = exprDlg.expressionText();
@@ -362,7 +362,7 @@ void QgsComposerHtmlWidget::on_mInsertExpressionButton_clicked()
QgsVectorLayer *coverageLayer = atlasCoverageLayer();
QgsExpressionContext context = mHtml->createExpressionContext();
QgsExpressionBuilderDialog exprDlg( coverageLayer, selText, this, QStringLiteral( "generic" ), context );
exprDlg.setWindowTitle( tr( "Insert expression" ) );
exprDlg.setWindowTitle( tr( "Insert Expression" ) );
if ( exprDlg.exec() == QDialog::Accepted )
{
QString expression = exprDlg.expressionText();
@@ -149,7 +149,7 @@ void QgsComposerLabelWidget::on_mInsertExpressionButton_clicked()
QgsExpressionContext context = mComposerLabel->createExpressionContext();
QgsExpressionBuilderDialog exprDlg( coverageLayer, selText, this, QStringLiteral( "generic" ), context );

exprDlg.setWindowTitle( tr( "Insert expression" ) );
exprDlg.setWindowTitle( tr( "Insert Expression" ) );
if ( exprDlg.exec() == QDialog::Accepted )
{
QString expression = exprDlg.expressionText();
@@ -1075,7 +1075,7 @@ void QgsComposerMapGridWidget::on_mAnnotationFormatButton_clicked()
QgsExpressionContext expressionContext = mComposerMapGrid->createExpressionContext();

QgsExpressionBuilderDialog exprDlg( nullptr, mComposerMapGrid->annotationExpression(), this, QStringLiteral( "generic" ), expressionContext );
exprDlg.setWindowTitle( tr( "Expression based annotation" ) );
exprDlg.setWindowTitle( tr( "Expression Based Annotation" ) );

if ( exprDlg.exec() == QDialog::Accepted )
{
@@ -888,7 +888,7 @@ QgisApp::QgisApp( QSplashScreen *splash, bool restorePlugins, bool skipVersionCh
else
{
QDialog *dialog = new QDialog( this );
dialog->setWindowTitle( tr( "Project snapping settings" ) );
dialog->setWindowTitle( tr( "Project Snapping Settings" ) );
QVBoxLayout *layout = new QVBoxLayout( dialog );
layout->addWidget( mSnappingDialog );
layout->setMargin( 0 );
@@ -6378,7 +6378,7 @@ void QgisApp::labelingFontNotFound( QgsVectorLayer *vlayer, const QString &fontf
void QgisApp::commitError( QgsVectorLayer *vlayer )
{
QgsMessageViewer *mv = new QgsMessageViewer();
mv->setWindowTitle( tr( "Commit errors" ) );
mv->setWindowTitle( tr( "Commit Errors" ) );
mv->setMessageAsPlainText( tr( "Could not commit changes to layer %1" ).arg( vlayer->name() )
+ "\n\n"
+ tr( "Errors: %1\n" ).arg( vlayer->commitErrors().join( QStringLiteral( "\n " ) ) )
@@ -6480,7 +6480,7 @@ void QgisApp::diagramProperties()
}

QDialog dlg;
dlg.setWindowTitle( tr( "Layer diagram properties" ) );
dlg.setWindowTitle( tr( "Layer Diagram Properties" ) );
QgsDiagramProperties *gui = new QgsDiagramProperties( vlayer, &dlg, mMapCanvas );
gui->layout()->setContentsMargins( 0, 0, 0, 0 );
QVBoxLayout *layout = new QVBoxLayout( &dlg );
@@ -6880,7 +6880,7 @@ void QgisApp::saveAsVectorFileGeneral( QgsVectorLayer *vlayer, bool symbologyOpt
if ( error != QgsVectorFileWriter::Canceled )
{
QgsMessageViewer *m = new QgsMessageViewer( nullptr );
m->setWindowTitle( tr( "Save error" ) );
m->setWindowTitle( tr( "Save Error" ) );
m->setMessageAsPlainText( tr( "Export to vector file failed.\nError: %1" ).arg( errorMessage ) );
m->exec();
}
@@ -54,7 +54,7 @@ QgsAddTabOrGroup::QgsAddTabOrGroup( QgsVectorLayer *lyr, const QList < TabPair >

mColumnCountSpinBox->setValue( QgsSettings().value( QStringLiteral( "/qgis/attributeForm/defaultTabColumnCount" ), 1 ).toInt() );

setWindowTitle( tr( "Add tab or group for %1" ).arg( mLayer->name() ) );
setWindowTitle( tr( "Add Tab or Group for %1" ).arg( mLayer->name() ) );
} // QgsVectorLayerProperties ctor

QgsAddTabOrGroup::~QgsAddTabOrGroup()
@@ -504,7 +504,7 @@ void QgsAppLayerTreeViewMenuProvider::editVectorSymbol()

std::unique_ptr< QgsSymbol > symbol( singleRenderer->symbol() ? singleRenderer->symbol()->clone() : nullptr );
QgsSymbolSelectorDialog dlg( symbol.get(), QgsStyle::defaultStyle(), layer, mView->window() );
dlg.setWindowTitle( tr( "Symbol selector" ) );
dlg.setWindowTitle( tr( "Symbol Selector" ) );
QgsSymbolWidgetContext context;
context.setMapCanvas( mCanvas );
dlg.setContext( context );
@@ -581,7 +581,7 @@ void QgsAppLayerTreeViewMenuProvider::editSymbolLegendNodeSymbol()
std::unique_ptr< QgsSymbol > symbol( originalSymbol->clone() );
QgsVectorLayer *vlayer = qobject_cast<QgsVectorLayer *>( node->layerNode()->layer() );
QgsSymbolSelectorDialog dlg( symbol.get(), QgsStyle::defaultStyle(), vlayer, mView->window() );
dlg.setWindowTitle( tr( "Symbol selector" ) );
dlg.setWindowTitle( tr( "Symbol Selector" ) );
QgsSymbolWidgetContext context;
context.setMapCanvas( mCanvas );
dlg.setContext( context );
@@ -267,7 +267,7 @@ void QgsAttributeActionDialog::insert()
int pos = mAttributeActionTable->rowCount();

QgsAttributeActionPropertiesDialog dlg( mLayer, this );
dlg.setWindowTitle( tr( "Add new action" ) );
dlg.setWindowTitle( tr( "Add New Action" ) );

if ( dlg.exec() )
{
@@ -325,7 +325,7 @@ void QgsAttributeActionDialog::itemDoubleClicked( QTableWidgetItem *item )
mLayer
);

actionProperties.setWindowTitle( tr( "Edit action" ) );
actionProperties.setWindowTitle( tr( "Edit Action" ) );

if ( actionProperties.exec() )
{
@@ -342,7 +342,7 @@ QgsAttributeTableDialog::~QgsAttributeTableDialog()
void QgsAttributeTableDialog::updateTitle()
{
QWidget *w = mDock ? qobject_cast<QWidget *>( mDock ) : qobject_cast<QWidget *>( this );
w->setWindowTitle( tr( " %1 :: Features total: %2, filtered: %3, selected: %4" )
w->setWindowTitle( tr( " %1 :: Features Total: %2, Filtered: %3, Selected: %4" )
.arg( mLayer->name() )
.arg( qMax( static_cast< long >( mMainView->featureCount() ), mLayer->featureCount() ) ) // layer count may be estimated, so use larger of the two
.arg( mMainView->filteredFeatureCount() )
@@ -584,7 +584,7 @@ void QgsAttributeTableDialog::filterExpressionBuilder()
QgsExpressionContext context( QgsExpressionContextUtils::globalProjectLayerScopes( mLayer ) );

QgsExpressionBuilderDialog dlg( mLayer, mFilterQuery->text(), this, QStringLiteral( "generic" ), context );
dlg.setWindowTitle( tr( "Expression based filter" ) );
dlg.setWindowTitle( tr( "Expression Based Filter" ) );

QgsDistanceArea myDa;
myDa.setSourceCrs( mLayer->crs() );
@@ -851,7 +851,7 @@ QString QgsDiagramProperties::showExpressionBuilder( const QString &initialExpre
<< QgsExpressionContextUtils::layerScope( mLayer );

QgsExpressionBuilderDialog dlg( mLayer, initialExpression, this, QStringLiteral( "generic" ), context );
dlg.setWindowTitle( tr( "Expression based attribute" ) );
dlg.setWindowTitle( tr( "Expression Based Attribute" ) );

QgsDistanceArea myDa;
myDa.setSourceCrs( mLayer->crs() );
@@ -1336,7 +1336,7 @@ void DesignerTree::onItemDoubleClicked( QTreeWidgetItem *item, int column )
if ( itemData.type() == QgsFieldsProperties::DesignerTreeItemData::Container )
{
QDialog dlg;
dlg.setWindowTitle( tr( "Configure container" ) );
dlg.setWindowTitle( tr( "Configure Container" ) );
QFormLayout *layout = new QFormLayout() ;
dlg.setLayout( layout );
layout->addRow( baseWidget );
@@ -1395,7 +1395,7 @@ void DesignerTree::onItemDoubleClicked( QTreeWidgetItem *item, int column )
else if ( itemData.type() == QgsFieldsProperties::DesignerTreeItemData::Relation )
{
QDialog dlg;
dlg.setWindowTitle( tr( "Configure relation editor" ) );
dlg.setWindowTitle( tr( "Configure Relation Editor" ) );
QFormLayout *layout = new QFormLayout() ;
dlg.setLayout( layout );
layout->addWidget( baseWidget );
@@ -1428,7 +1428,7 @@ void DesignerTree::onItemDoubleClicked( QTreeWidgetItem *item, int column )
else
{
QDialog dlg;
dlg.setWindowTitle( tr( "Configure field" ) );
dlg.setWindowTitle( tr( "Configure Field" ) );
dlg.setLayout( new QGridLayout() );
dlg.layout()->addWidget( baseWidget );

@@ -162,7 +162,7 @@ bool QgsGuiVectorLayerTools::stopEditing( QgsVectorLayer *layer, bool allowCance
void QgsGuiVectorLayerTools::commitError( QgsVectorLayer *vlayer ) const
{
QgsMessageViewer *mv = new QgsMessageViewer();
mv->setWindowTitle( tr( "Commit errors" ) );
mv->setWindowTitle( tr( "Commit Errors" ) );
mv->setMessageAsPlainText( tr( "Could not commit changes to layer %1" ).arg( vlayer->name() )
+ "\n\n"
+ tr( "Errors: %1\n" ).arg( vlayer->commitErrors().join( QStringLiteral( "\n " ) ) )
@@ -30,7 +30,7 @@ QgsHtmlAnnotationDialog::QgsHtmlAnnotationDialog( QgsMapCanvasAnnotationItem *it
, mEmbeddedWidget( nullptr )
{
setupUi( this );
setWindowTitle( tr( "HTML annotation" ) );
setWindowTitle( tr( "HTML Annotation" ) );
mEmbeddedWidget = new QgsAnnotationWidget( mItem );
mStackedWidget->addWidget( mEmbeddedWidget );
mStackedWidget->setCurrentWidget( mEmbeddedWidget );
@@ -109,7 +109,7 @@ QgsMapSaveDialog::QgsMapSaveDialog( QWidget *parent, QgsMapCanvas *mapCanvas, QL
}
mSaveAsRaster->setVisible( true );

this->setWindowTitle( tr( "Save map as PDF" ) );
this->setWindowTitle( tr( "Save Map as PDF" ) );
}
else
{
@@ -1399,7 +1399,7 @@ void QgsProjectProperties::on_mRemoveWMSComposerButton_clicked()
void QgsProjectProperties::on_mAddLayerRestrictionButton_clicked()
{
QgsProjectLayerGroupDialog d( this, QgsProject::instance()->fileName() );
d.setWindowTitle( tr( "Select restricted layers and groups" ) );
d.setWindowTitle( tr( "Select Restricted Layers and Groups" ) );
if ( d.exec() == QDialog::Accepted )
{
QStringList layerNames = d.selectedLayerNames();
@@ -26,7 +26,7 @@ QgsSaveStyleToDbDialog::QgsSaveStyleToDbDialog( QWidget *parent )
: QDialog( parent )
{
setupUi( this );
setWindowTitle( QStringLiteral( "Save style in database" ) );
setWindowTitle( QStringLiteral( "Save Style in Database" ) );
mDescriptionEdit->setTabChangesFocus( true );
setTabOrder( mNameEdit, mDescriptionEdit );
setTabOrder( mDescriptionEdit, mUseAsDefault );
@@ -44,7 +44,7 @@ QgsSelectByFormDialog::QgsSelectByFormDialog( QgsVectorLayer *layer, const QgsAt
QgsSettings settings;
restoreGeometry( settings.value( QStringLiteral( "Windows/SelectByForm/geometry" ) ).toByteArray() );

setWindowTitle( tr( "Select features by value" ) );
setWindowTitle( tr( "Select Features by Value" ) );
}

QgsSelectByFormDialog::~QgsSelectByFormDialog()
@@ -377,7 +377,7 @@ void QgsDualView::previewExpressionBuilder()
QgsExpressionContext context( QgsExpressionContextUtils::globalProjectLayerScopes( mLayer ) );

QgsExpressionBuilderDialog dlg( mLayer, mFeatureList->displayExpression(), this, QStringLiteral( "generic" ), context );
dlg.setWindowTitle( tr( "Expression based preview" ) );
dlg.setWindowTitle( tr( "Expression Based Preview" ) );
dlg.setExpressionText( mFeatureList->displayExpression() );

if ( dlg.exec() == QDialog::Accepted )
@@ -606,7 +606,7 @@ void QgsDualView::modifySort()
QgsAttributeTableConfig config = mConfig;

QDialog orderByDlg;
orderByDlg.setWindowTitle( tr( "Configure attribute table sort order" ) );
orderByDlg.setWindowTitle( tr( "Configure Attribute Table Sort Order" ) );
QDialogButtonBox *dialogButtonBox = new QDialogButtonBox( QDialogButtonBox::Ok | QDialogButtonBox::Cancel );
QGridLayout *layout = new QGridLayout();
connect( dialogButtonBox, &QDialogButtonBox::accepted, &orderByDlg, &QDialog::accept );
@@ -800,7 +800,7 @@ void QgsDualView::progress( int i, bool &cancel )
if ( !mProgressDlg )
{
mProgressDlg = new QProgressDialog( tr( "Loading features..." ), tr( "Abort" ), 0, 0, this );
mProgressDlg->setWindowTitle( tr( "Attribute table" ) );
mProgressDlg->setWindowTitle( tr( "Attribute Table" ) );
mProgressDlg->setWindowModality( Qt::WindowModal );
mProgressDlg->show();
}
@@ -75,7 +75,7 @@ void QgsValueRelationConfigDlg::editExpression()
QgsExpressionContext context( QgsExpressionContextUtils::globalProjectLayerScopes( vl ) );

QgsExpressionBuilderDialog dlg( vl, mFilterExpression->toPlainText(), this, QStringLiteral( "generic" ), context );
dlg.setWindowTitle( tr( "Edit filter expression" ) );
dlg.setWindowTitle( tr( "Edit Filter Expression" ) );

if ( dlg.exec() == QDialog::Accepted )
{
@@ -229,7 +229,7 @@ void QgsVectorLayerSaveAsDialog::accept()
{
QMessageBox msgBox;
msgBox.setIcon( QMessageBox::Question );
msgBox.setWindowTitle( tr( "The layer already exists" ) );
msgBox.setWindowTitle( tr( "The Layer Already Exists" ) );
msgBox.setText( tr( "Do you want to overwrite the whole file or overwrite the layer?" ) );
QPushButton *overwriteFileButton = msgBox.addButton( tr( "Overwrite file" ), QMessageBox::ActionRole );
QPushButton *overwriteLayerButton = msgBox.addButton( tr( "Overwrite layer" ), QMessageBox::ActionRole );
@@ -258,7 +258,7 @@ void QgsVectorLayerSaveAsDialog::accept()
{
QMessageBox msgBox;
msgBox.setIcon( QMessageBox::Question );
msgBox.setWindowTitle( tr( "The layer already exists" ) );
msgBox.setWindowTitle( tr( "The Layer Already Exists" ) );
msgBox.setText( tr( "Do you want to overwrite the whole file, overwrite the layer or append features to the layer?" ) );
QPushButton *overwriteFileButton = msgBox.addButton( tr( "Overwrite file" ), QMessageBox::ActionRole );
QPushButton *overwriteLayerButton = msgBox.addButton( tr( "Overwrite layer" ), QMessageBox::ActionRole );
@@ -279,7 +279,7 @@ void QgsVectorLayerSaveAsDialog::accept()
{
QMessageBox msgBox;
msgBox.setIcon( QMessageBox::Question );
msgBox.setWindowTitle( tr( "The layer already exists" ) );
msgBox.setWindowTitle( tr( "The Layer Already Exists" ) );
msgBox.setText( tr( "Do you want to overwrite the whole file or append features to the layer?" ) );
QPushButton *overwriteFileButton = msgBox.addButton( tr( "Overwrite file" ), QMessageBox::ActionRole );
QPushButton *appendToLayerButton = msgBox.addButton( tr( "Append to layer" ), QMessageBox::ActionRole );
@@ -649,7 +649,7 @@ void QgsExpressionBuilderWidget::on_lblPreview_linkActivated( const QString &lin
{
Q_UNUSED( link );
QgsMessageViewer *mv = new QgsMessageViewer( this );
mv->setWindowTitle( tr( "More info on expression error" ) );
mv->setWindowTitle( tr( "More Info on Expression Error" ) );
mv->setMessageAsHtml( txtExpressionString->toolTip() );
mv->exec();
}
@@ -31,7 +31,7 @@ QgsExpressionSelectionDialog::QgsExpressionSelectionDialog( QgsVectorLayer *laye
{
setupUi( this );

setWindowTitle( QStringLiteral( "Select by expression - %1" ).arg( layer->name() ) );
setWindowTitle( QStringLiteral( "Select by Expression - %1" ).arg( layer->name() ) );

mActionSelect->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mIconExpressionSelect.svg" ) ) );
mActionAddToSelection->setIcon( QgsApplication::getThemeIcon( QStringLiteral( "/mIconSelectAdd.svg" ) ) );

1 comment on commit 8d4dec5

@nyalldawson

This comment has been minimized.

Copy link
Collaborator

@nyalldawson nyalldawson commented on 8d4dec5 Jul 26, 2017

@SrNetoChan Nice work!

Some other places to look are :

setColorDialogTitle
setColorRampDialogTitle
setExpressionDialogTitle

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