Skip to content

Commit

Permalink
Capitalization
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Nov 20, 2018
1 parent 2d30e0e commit 17e5873
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/app/qgsnewspatialitelayerdialog.cpp
Expand Up @@ -287,7 +287,7 @@ bool QgsNewSpatialiteLayerDialog::createDb()
msgBox.setWindowTitle( tr( "New SpatiaLite Layer" ) );
msgBox.setText( tr( "The file already exists. Do you want to overwrite the existing file with a new database or add a new layer to it?" ) );
QPushButton *overwriteButton = msgBox.addButton( tr( "Overwrite" ), QMessageBox::ActionRole );
QPushButton *addNewLayerButton = msgBox.addButton( tr( "Add new layer" ), QMessageBox::ActionRole );
QPushButton *addNewLayerButton = msgBox.addButton( tr( "Add New Layer" ), QMessageBox::ActionRole );
msgBox.setStandardButtons( QMessageBox::Cancel );
msgBox.setDefaultButton( addNewLayerButton );
int ret = msgBox.exec();
Expand Down
8 changes: 4 additions & 4 deletions src/app/qgsvectorlayerproperties.cpp
Expand Up @@ -917,8 +917,8 @@ void QgsVectorLayerProperties::loadDefaultStyle_clicked()
askToUser.setText( tr( "Load default style from: " ) );
askToUser.setIcon( QMessageBox::Question );
askToUser.addButton( tr( "Cancel" ), QMessageBox::RejectRole );
askToUser.addButton( tr( "Local database" ), QMessageBox::NoRole );
askToUser.addButton( tr( "Datasource database" ), QMessageBox::YesRole );
askToUser.addButton( tr( "Local Database" ), QMessageBox::NoRole );
askToUser.addButton( tr( "Datasource Database" ), QMessageBox::YesRole );

switch ( askToUser.exec() )
{
Expand Down Expand Up @@ -972,8 +972,8 @@ void QgsVectorLayerProperties::saveDefaultStyle_clicked()
askToUser.setText( tr( "Save default style to: " ) );
askToUser.setIcon( QMessageBox::Question );
askToUser.addButton( tr( "Cancel" ), QMessageBox::RejectRole );
askToUser.addButton( tr( "Local database" ), QMessageBox::NoRole );
askToUser.addButton( tr( "Datasource database" ), QMessageBox::YesRole );
askToUser.addButton( tr( "Local Database" ), QMessageBox::NoRole );
askToUser.addButton( tr( "Datasource Database" ), QMessageBox::YesRole );

switch ( askToUser.exec() )
{
Expand Down
8 changes: 4 additions & 4 deletions src/gui/qgsmaplayerstylemanagerwidget.cpp
Expand Up @@ -189,8 +189,8 @@ void QgsMapLayerStyleManagerWidget::saveAsDefault()
askToUser.setText( tr( "Save default style to: " ) );
askToUser.setIcon( QMessageBox::Question );
askToUser.addButton( tr( "Cancel" ), QMessageBox::RejectRole );
askToUser.addButton( tr( "Local database" ), QMessageBox::NoRole );
askToUser.addButton( tr( "Datasource database" ), QMessageBox::YesRole );
askToUser.addButton( tr( "Local Database" ), QMessageBox::NoRole );
askToUser.addButton( tr( "Datasource Database" ), QMessageBox::YesRole );

switch ( askToUser.exec() )
{
Expand Down Expand Up @@ -232,8 +232,8 @@ void QgsMapLayerStyleManagerWidget::loadDefault()
askToUser.setText( tr( "Load default style from: " ) );
askToUser.setIcon( QMessageBox::Question );
askToUser.addButton( tr( "Cancel" ), QMessageBox::RejectRole );
askToUser.addButton( tr( "Local database" ), QMessageBox::NoRole );
askToUser.addButton( tr( "Datasource database" ), QMessageBox::YesRole );
askToUser.addButton( tr( "Local Database" ), QMessageBox::NoRole );
askToUser.addButton( tr( "Datasource Database" ), QMessageBox::YesRole );

switch ( askToUser.exec() )
{
Expand Down
2 changes: 1 addition & 1 deletion src/gui/qgsnewgeopackagelayerdialog.cpp
Expand Up @@ -262,7 +262,7 @@ bool QgsNewGeoPackageLayerDialog::apply()
msgBox.setWindowTitle( tr( "New GeoPackage Layer" ) );
msgBox.setText( tr( "The File already exists. Do you want to overwrite the existing file with a new database or add a new layer to it?" ) );
QPushButton *overwriteButton = msgBox.addButton( tr( "Overwrite" ), QMessageBox::ActionRole );
QPushButton *addNewLayerButton = msgBox.addButton( tr( "Add new layer" ), QMessageBox::ActionRole );
QPushButton *addNewLayerButton = msgBox.addButton( tr( "Add New Layer" ), QMessageBox::ActionRole );
msgBox.setStandardButtons( QMessageBox::Cancel );
msgBox.setDefaultButton( addNewLayerButton );
bool cancel = false;
Expand Down

0 comments on commit 17e5873

Please sign in to comment.