Skip to content
Permalink
Browse files

relation reference: correctly initialize and set properties for widget

  • Loading branch information
3nids committed Aug 20, 2014
1 parent eb678e4 commit dbf2834b9b851231ee2f29451df4eb230909eb2a
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/gui/editorwidgets/qgsrelationreferencewidget.cpp
@@ -111,6 +111,7 @@ QgsRelationReferenceWidget::QgsRelationReferenceWidget( QWidget* parent )
// default mode is combobox, non geometric relation and no embed form
mLineEdit->hide();
mMapIdentificationButton->hide();
mAttributeEditorFrame->hide();
}

QgsRelationReferenceWidget::~QgsRelationReferenceWidget()
@@ -236,18 +237,21 @@ void QgsRelationReferenceWidget::setEditorContext( QgsAttributeEditorContext con
void QgsRelationReferenceWidget::setEmbedForm( bool display )
{
mAttributeEditorFrame->setVisible( display );
mEmbedForm = display;
}

void QgsRelationReferenceWidget::setReadOnlySelector( bool readOnly )
{
mComboBox->setHidden( readOnly );
mLineEdit->setVisible( readOnly );
mReadOnlySelector = readOnly;
}

void QgsRelationReferenceWidget::setAllowMapIdentification( bool allowMapIdentification )
{
mHighlightFeatureButton->setVisible( allowMapIdentification );
mMapIdentificationButton->setVisible( allowMapIdentification );
mAllowMapIdentification = allowMapIdentification;
}

void QgsRelationReferenceWidget::highlightActionTriggered( QAction* action )

0 comments on commit dbf2834

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