Skip to content
Permalink
Browse files

add tooltip and placeholder text for point parameter definition widget

  • Loading branch information
alexbruy committed Mar 19, 2020
1 parent 16b4ef8 commit 175fa786962551a9eaf037cd516e94216b3a59f5
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/gui/processing/qgsprocessingwidgetwrapperimpl.cpp
@@ -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 );

0 comments on commit 175fa78

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