Skip to content
Permalink
Browse files

Capitalization

  • Loading branch information
nyalldawson committed Nov 20, 2018
1 parent 2d30e0e commit 17e58738b8f151a06af26fea146cd190a9bdbd2a
@@ -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();
@@ -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() )
{
@@ -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() )
{
@@ -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() )
{
@@ -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() )
{
@@ -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;

0 comments on commit 17e5873

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