Skip to content

Commit

Permalink
Show scrollbars for attribute form as identify results
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jun 9, 2016
1 parent b44f62a commit ce7d79e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/app/qgsfeatureaction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 );

Expand Down
4 changes: 3 additions & 1 deletion src/gui/qgsattributedialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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*>();
Expand Down

0 comments on commit ce7d79e

Please sign in to comment.