20 #include <QPushButton>
23 QDialog( parent, fl ),
24 mWidgetMode( widgetMode )
45 buttonBox->setStandardButtons( QDialogButtonBox::Apply | QDialogButtonBox::Close | QDialogButtonBox::Help );
47 buttonBox->setStyleSheet(
"* { button-layout: 2 }" );
49 mAddButton = buttonBox->button( QDialogButtonBox::Apply );
50 mAddButton->setText( tr(
"&Add" ) );
51 mAddButton->setToolTip( tr(
"Add selected layers to map" ) );
52 mAddButton->setEnabled(
false );
56 QPushButton *closeButton = buttonBox->button( QDialogButtonBox::Close );
57 closeButton->setToolTip( tr(
"Close this dialog without adding any layer" ) );
58 connect( closeButton, &QPushButton::clicked,
this, &QgsAbstractDataSourceWidget::reject );
68 mBrowserModel = model;
A model for showing available data sources and other items in a structured tree.
Map canvas is a class for displaying all GIS data types on a canvas.
WidgetMode
Different ways a source select dialog can be used.