20#include "moc_qgsabstractdatasourcewidget.cpp"
24 QDialog( parent, fl ),
25 mWidgetMode( widgetMode )
41 buttonBox->setStandardButtons( QDialogButtonBox::Apply | QDialogButtonBox::Close | QDialogButtonBox::Help );
43 buttonBox->setStyleSheet(
"* { button-layout: 2 }" );
45 mAddButton = buttonBox->button( QDialogButtonBox::Apply );
46 mAddButton->setText( tr(
"&Add" ) );
47 mAddButton->setToolTip( tr(
"Add selected layers to map" ) );
48 mAddButton->setEnabled(
false );
52 QPushButton *closeButton = buttonBox->button( QDialogButtonBox::Close );
53 closeButton->setToolTip( tr(
"Close this dialog without adding any layer" ) );
54 connect( closeButton, &QPushButton::clicked,
this, &QgsAbstractDataSourceWidget::reject );
59 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.