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