Skip to content
Permalink
Browse files

Allow multiple selection of d&d fields in form designer

  • Loading branch information
elpaso committed Mar 22, 2019
1 parent ee7a7e7 commit dbe8b6c0a6248429edc8612f3f5287313ec0e3de
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/app/qgsattributesformproperties.cpp
@@ -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 );

@@ -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 );

0 comments on commit dbe8b6c

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