Skip to content

Commit

Permalink
add tooltip and placeholder text for point parameter definition widget
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Mar 19, 2020
1 parent 16b4ef8 commit 175fa78
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gui/processing/qgsprocessingwidgetwrapperimpl.cpp
Expand Up @@ -2635,6 +2635,8 @@ QgsProcessingPointParameterDefinitionWidget::QgsProcessingPointParameterDefiniti
vlayout->addWidget( new QLabel( tr( "Default value" ) ) );

mDefaultLineEdit = new QLineEdit();
mDefaultLineEdit->setToolTip( tr( "Point as 'x,y'" ) );
mDefaultLineEdit->setPlaceholderText( tr( "Point as 'x,y'" ) );
if ( const QgsProcessingParameterPoint *pointParam = dynamic_cast<const QgsProcessingParameterPoint *>( definition ) )
{
QgsPointXY point = QgsProcessingParameters::parameterAsPoint( pointParam, pointParam->defaultValue(), context );
Expand Down

0 comments on commit 175fa78

Please sign in to comment.