Skip to content

Commit baf2a0f

Browse files
committed
[hig] Capitalization, improve dialog titles
1 parent f595d53 commit baf2a0f

8 files changed

+10
-10
lines changed

src/app/layout/qgslayoutlegendwidget.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1106,7 +1106,7 @@ void QgsLayoutLegendWidget::mItemTreeView_doubleClicked( const QModelIndex &idx
11061106
}
11071107

11081108
bool ok;
1109-
QString newText = QInputDialog::getText( this, tr( "Legend item properties" ), tr( "Item text" ),
1109+
QString newText = QInputDialog::getText( this, tr( "Legend Item Properties" ), tr( "Item text" ),
11101110
QLineEdit::Normal, currentText, &ok );
11111111
if ( !ok || newText == currentText )
11121112
return;

src/app/qgisapp.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -8923,7 +8923,7 @@ QgsVectorLayer *QgisApp::pasteAsNewMemoryVector( const QString &layerName )
89238923
{
89248924
bool ok;
89258925
QString defaultName = tr( "Pasted" );
8926-
layerNameCopy = QInputDialog::getText( this, tr( "New temporary scratch layer name" ),
8926+
layerNameCopy = QInputDialog::getText( this, tr( "Paste as Scratch Layer" ),
89278927
tr( "Layer name" ), QLineEdit::Normal,
89288928
defaultName, &ok );
89298929
if ( !ok )

src/app/qgsmaplayerstyleguiutils.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ void QgsMapLayerStyleGuiUtils::addStyle()
101101
return;
102102

103103
bool ok;
104-
QString text = QInputDialog::getText( nullptr, tr( "New style" ),
104+
QString text = QInputDialog::getText( nullptr, tr( "New Style" ),
105105
tr( "Style name:" ), QLineEdit::Normal,
106106
QStringLiteral( "new style" ), &ok );
107107
if ( !ok || text.isEmpty() )
@@ -166,7 +166,7 @@ void QgsMapLayerStyleGuiUtils::renameStyle()
166166
QString name = layer->styleManager()->currentStyle();
167167

168168
bool ok;
169-
QString text = QInputDialog::getText( nullptr, tr( "Rename style" ),
169+
QString text = QInputDialog::getText( nullptr, tr( "Rename Style" ),
170170
tr( "Style name:" ), QLineEdit::Normal,
171171
name, &ok );
172172
if ( !ok )

src/auth/oauth2/qgsauthoauth2method.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ void QgsAuthOAuth2Method::onRefreshFinished( QNetworkReply::NetworkError err )
462462
void QgsAuthOAuth2Method::onAuthCode()
463463
{
464464
bool ok = false;
465-
QString code = QInputDialog::getText( QApplication::activeWindow(), QStringLiteral( "Enter the authorization code" ), QStringLiteral( "Authoriation code" ), QLineEdit::Normal, QStringLiteral( "Required" ), &ok, Qt::Dialog, Qt::InputMethodHint::ImhNone );
465+
QString code = QInputDialog::getText( QApplication::activeWindow(), QStringLiteral( "Authoriation Code" ), QStringLiteral( "Enter the authorization code" ), QLineEdit::Normal, QStringLiteral( "Required" ), &ok, Qt::Dialog, Qt::InputMethodHint::ImhNone );
466466
if ( ok && !code.isEmpty() )
467467
{
468468
emit setAuthCode( code );

src/gui/qgsexpressionbuilderwidget.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -329,8 +329,8 @@ void QgsExpressionBuilderWidget::newFunctionFile( const QString &fileName )
329329
void QgsExpressionBuilderWidget::btnNewFile_pressed()
330330
{
331331
bool ok;
332-
QString text = QInputDialog::getText( this, tr( "Enter new file name" ),
333-
tr( "File name:" ), QLineEdit::Normal,
332+
QString text = QInputDialog::getText( this, tr( "New File" ),
333+
tr( "New file name:" ), QLineEdit::Normal,
334334
QString(), &ok );
335335
if ( ok && !text.isEmpty() )
336336
{

src/gui/qgsmaplayerstylemanagerwidget.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ void QgsMapLayerStyleManagerWidget::styleRenamed( const QString &oldname, const
139139
void QgsMapLayerStyleManagerWidget::addStyle()
140140
{
141141
bool ok;
142-
QString text = QInputDialog::getText( nullptr, tr( "New style" ),
142+
QString text = QInputDialog::getText( nullptr, tr( "New Style" ),
143143
tr( "Style name:" ), QLineEdit::Normal,
144144
QStringLiteral( "new style" ), &ok );
145145
if ( !ok || text.isEmpty() )

src/providers/ogr/qgsogrdataitems.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ bool QgsOgrDataCollectionItem::storeConnection( const QString &path, const QStri
490490
while ( ok && ! QgsOgrDbConnection( connName, ogrDriverName ).path( ).isEmpty( ) )
491491
{
492492

493-
connName = QInputDialog::getText( nullptr, tr( "Cannot add connection '%1'" ).arg( connName ),
493+
connName = QInputDialog::getText( nullptr, tr( "Add Connection" ),
494494
tr( "A connection with the same name already exists,\nplease provide a new name:" ), QLineEdit::Normal,
495495
QString(), &ok );
496496
}

src/providers/spatialite/qgsspatialitesourceselect.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ bool QgsSpatiaLiteSourceSelect::newConnection( QWidget *parent )
296296
while ( ! settings.value( baseKey + savedName + "/sqlitepath", "" ).toString().isEmpty() )
297297
{
298298
bool ok;
299-
savedName = QInputDialog::getText( nullptr, tr( "Cannot add connection '%1'" ).arg( myName ),
299+
savedName = QInputDialog::getText( nullptr, tr( "Add Connection" ),
300300
tr( "A connection with the same name already exists,\nplease provide a new name:" ), QLineEdit::Normal,
301301
QString(), &ok );
302302
if ( !ok || savedName.isEmpty() )

0 commit comments

Comments
 (0)