20 #include <QPushButton> 23 QDialog( parent, fl ),
24 mWidgetMode( widgetMode )
41 buttonBox->setStandardButtons( QDialogButtonBox::Apply | QDialogButtonBox::Close | QDialogButtonBox::Help );
42 mAddButton = buttonBox->button( QDialogButtonBox::Apply );
43 mAddButton->setText( tr(
"&Add" ) );
44 mAddButton->setToolTip( tr(
"Add selected layers to map" ) );
45 mAddButton->setEnabled(
false );
49 QPushButton *closeButton = buttonBox->button( QDialogButtonBox::Close );
50 closeButton->setToolTip( tr(
"Close this dialog without adding any layer" ) );
51 connect( closeButton, &QPushButton::clicked,
this, &QgsAbstractDataSourceWidget::reject );
WidgetMode
Different ways a source select dialog can be used (embedded is for the data source manager dialog) ...
Map canvas is a class for displaying all GIS data types on a canvas.