42 buttonBox->setStandardButtons( QDialogButtonBox::Apply | QDialogButtonBox::Close | QDialogButtonBox::Help );
44 buttonBox->setStyleSheet(
"* { button-layout: 2 }" );
46 mAddButton = buttonBox->button( QDialogButtonBox::Apply );
47 mAddButton->setText( tr(
"&Add" ) );
48 mAddButton->setToolTip( tr(
"Add selected layers to map" ) );
49 mAddButton->setEnabled(
false );
53 QPushButton *closeButton = buttonBox->button( QDialogButtonBox::Close );
54 closeButton->setToolTip( tr(
"Close this dialog without adding any layer" ) );
55 connect( closeButton, &QPushButton::clicked,
this, &QgsAbstractDataSourceWidget::reject );