mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-05 00:09:32 -04:00
Apply suggestions from code review
This commit is contained in:
parent
79a34fd721
commit
9ea1ddbe64
@ -420,7 +420,7 @@ QgsElevationProfileWidget::QgsElevationProfileWidget( const QString &name )
|
||||
|
||||
mOptionsMenu->addSeparator();
|
||||
|
||||
mRenameProfileAction = new QAction( tr( "Rename profile" ), this );
|
||||
mRenameProfileAction = new QAction( tr( "Rename Profile…" ), this );
|
||||
connect( mRenameProfileAction, &QAction::triggered, this, &QgsElevationProfileWidget::renameProfileTriggered );
|
||||
mOptionsMenu->addAction( mRenameProfileAction );
|
||||
|
||||
@ -972,7 +972,7 @@ void QgsElevationProfileWidget::axisScaleLockToggled( bool active )
|
||||
void QgsElevationProfileWidget::renameProfileTriggered()
|
||||
{
|
||||
QgsNewNameDialog dlg( tr( "elevation profile" ), canvasName(), {}, {}, Qt::CaseSensitive, this );
|
||||
dlg.setWindowTitle( tr( "Rename elevation profile" ) );
|
||||
dlg.setWindowTitle( tr( "Rename Elevation Profile" ) );
|
||||
dlg.setHintString( tr( "Enter a new elevation profile title" ) );
|
||||
dlg.setAllowEmptyName( false );
|
||||
if ( dlg.exec() == QDialog::Accepted )
|
||||
|
Loading…
x
Reference in New Issue
Block a user