Skip to content
Permalink
Browse files

[layouts] Allow double-clicking to add layer to legend

Fixes #14410
  • Loading branch information
nyalldawson committed Dec 19, 2017
1 parent b25c489 commit 664025709ee4c8132dd08e865a317735475445f6
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/app/layout/qgslayoutlegendlayersdialog.cpp
@@ -30,6 +30,8 @@ QgsLayoutLegendLayersDialog::QgsLayoutLegendLayersDialog( QWidget *parent )
listMapLayers->setModel( mModel );
QModelIndex firstLayer = mModel->index( 0, 0 );
listMapLayers->selectionModel()->select( firstLayer, QItemSelectionModel::Select );

connect( listMapLayers, &QListView::doubleClicked, this, &QgsLayoutLegendLayersDialog::accept );
}

QgsLayoutLegendLayersDialog::~QgsLayoutLegendLayersDialog()

0 comments on commit 6640257

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