32 cboFileOptions->addItem( tr(
"Function file" ) );
33 cboFileOptions->addItem( tr(
"Project functions" ), u
"project"_s );
36 if ( !enableProjectFunctions )
38 QStandardItem *item = qobject_cast<QStandardItemModel *>( cboFileOptions->model() )->item( 1 );
39 item->setFlags( item->flags() & ~Qt::ItemIsEnabled );
42 connect( cboFileOptions, qOverload<int>( &QComboBox::currentIndexChanged ),
this, &QgsExpressionAddFunctionFileDialog::cboFileOptions_currentIndexChanged );
43 connect( txtNewFileName, &QLineEdit::textChanged,
this, [
this](
const QString & ) { updateOkButtonStatus(); } );
44 connect( buttonBox, &QDialogButtonBox::helpRequested,
this, [] {
48 updateOkButtonStatus();