Skip to content
Permalink
Browse files

Show scrollbars for attribute form as identify results

  • Loading branch information
nyalldawson committed Jun 9, 2016
1 parent b44f62a commit ce7d79e495d22ee3624405a45f7724d847f69858
Showing with 4 additions and 1 deletion.
  1. +1 −0 src/app/qgsfeatureaction.cpp
  2. +3 −1 src/gui/qgsattributedialog.cpp
@@ -59,6 +59,7 @@ QgsAttributeDialog *QgsFeatureAction::newDialog( bool cloneFeature )

context.setDistanceArea( myDa );
context.setVectorLayerTools( QgisApp::instance()->vectorLayerTools() );
context.setFormMode( QgsAttributeEditorContext::StandaloneDialog );

QgsAttributeDialog *dialog = new QgsAttributeDialog( mLayer, f, cloneFeature, nullptr, true, context );

@@ -108,8 +108,10 @@ void QgsAttributeDialog::init( QgsVectorLayer* layer, QgsFeature* feature, const
layout()->setMargin( 0 );
mTrackedVectorLayerTools.setVectorLayerTools( trackedContext.vectorLayerTools() );
trackedContext.setVectorLayerTools( &mTrackedVectorLayerTools );
if ( showDialogButtons )
trackedContext.setFormMode( QgsAttributeEditorContext::StandaloneDialog );

mAttributeForm = new QgsAttributeForm( layer, *feature, trackedContext, this, !showDialogButtons );
mAttributeForm = new QgsAttributeForm( layer, *feature, trackedContext, this );
mAttributeForm->disconnectButtonBox();
layout()->addWidget( mAttributeForm );
QDialogButtonBox* buttonBox = mAttributeForm->findChild<QDialogButtonBox*>();

0 comments on commit ce7d79e

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