Skip to content

Commit

Permalink
Merge pull request #9613 from elpaso/form-designer-allow-multiple-sel…
Browse files Browse the repository at this point in the history
…ection

Allow multiple selection of d&d fields in form designer
  • Loading branch information
elpaso committed Mar 23, 2019
2 parents a19fc89 + dbe8b6c commit 78b5678
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/qgsattributesformproperties.cpp
Expand Up @@ -38,6 +38,7 @@ QgsAttributesFormProperties::QgsAttributesFormProperties( QgsVectorLayer *layer,
availableWidgetsWidgetLayout->addWidget( mAvailableWidgetsTree );
availableWidgetsWidgetLayout->setMargin( 0 );
mAvailableWidgetsWidget->setLayout( availableWidgetsWidgetLayout );
mAvailableWidgetsTree->setSelectionMode( QAbstractItemView::SelectionMode::ExtendedSelection );
mAvailableWidgetsTree->setHeaderLabels( QStringList() << tr( "Available Widgets" ) );
mAvailableWidgetsTree->setType( DnDTree::Type::Drag );

Expand Down Expand Up @@ -155,6 +156,7 @@ void QgsAttributesFormProperties::initFormLayoutTree()
mFormLayoutTree->clear();
mFormLayoutTree->setSortingEnabled( false );
mFormLayoutTree->setSelectionBehavior( QAbstractItemView::SelectRows );
mFormLayoutTree->setSelectionMode( QAbstractItemView::SelectionMode::ExtendedSelection );
mFormLayoutTree->setAcceptDrops( true );
mFormLayoutTree->setDragDropMode( QAbstractItemView::DragDrop );

Expand Down

0 comments on commit 78b5678

Please sign in to comment.