28 mDisplayAsTextComboBox->setCurrentIndex( 0 );
34 if ( vl->
fields().
at( fieldIdx ).
type() == QMetaType::Type::Bool )
36 leCheckedState->setEnabled(
false );
37 leUncheckedState->setEnabled(
false );
39 leCheckedState->setPlaceholderText( QStringLiteral(
"TRUE" ) );
40 leUncheckedState->setPlaceholderText( QStringLiteral(
"FALSE" ) );
48 cfg.insert( QStringLiteral(
"CheckedState" ), leCheckedState->text() );
49 cfg.insert( QStringLiteral(
"UncheckedState" ), leUncheckedState->text() );
50 cfg.insert( QStringLiteral(
"TextDisplayMethod" ), mDisplayAsTextComboBox->currentData().toInt() );
51 cfg.insert( QStringLiteral(
"AllowNullState" ), mAllowNullState->isChecked() );