mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -04:00
Show scrollbars for attribute form as identify results
This commit is contained in:
parent
b44f62a1c2
commit
ce7d79e495
@ -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*>();
|
||||
|
Loading…
x
Reference in New Issue
Block a user