26 cboFileOptions->addItem( tr(
"Function file" ) );
27 cboFileOptions->addItem( tr(
"Project functions" ), QStringLiteral(
"project" ) );
30 if ( !enableProjectFunctions )
32 QStandardItem *item = qobject_cast<QStandardItemModel *>( cboFileOptions->model() )->item( 1 );
33 item->setFlags( item->flags() & ~Qt::ItemIsEnabled );
36 connect( cboFileOptions, qOverload<int>( &QComboBox::currentIndexChanged ),
this, &QgsExpressionAddFunctionFileDialog::cboFileOptions_currentIndexChanged );
37 connect( txtNewFileName, &QLineEdit::textChanged,
this, [ = ](
const QString & ) { updateOkButtonStatus(); } );
39 updateOkButtonStatus();