20 #include <QPushButton> 23 QDialog( parent, fl ),
24 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 );
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.