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