20#include "moc_qgsabstractdatasourcewidget.cpp" 
   24  : QDialog( parent, fl ), mWidgetMode( widgetMode )
 
 
   40  buttonBox->setStandardButtons( QDialogButtonBox::Apply | QDialogButtonBox::Close | QDialogButtonBox::Help );
 
   42  buttonBox->setStyleSheet( 
"* { button-layout: 2 }" );
 
   44  mAddButton = buttonBox->button( QDialogButtonBox::Apply );
 
   45  mAddButton->setText( tr( 
"&Add" ) );
 
   46  mAddButton->setToolTip( tr( 
"Add selected layers to map" ) );
 
   47  mAddButton->setEnabled( 
false );
 
   51  QPushButton *closeButton = buttonBox->button( QDialogButtonBox::Close );
 
   52  closeButton->setToolTip( tr( 
"Close this dialog without adding any layer" ) );
 
   53  connect( closeButton, &QPushButton::clicked, 
this, &QgsAbstractDataSourceWidget::reject );
 
 
   58  mBrowserModel = model;
 
 
A model for showing available data sources and other items in a structured tree.
 
WidgetMode
Different ways a source select dialog can be used.