26 if ( vl->
fields().
at( fieldIdx ).
type() == QVariant::Bool )
28 leCheckedState->setEnabled(
false );
29 leUncheckedState->setEnabled(
false );
31 leCheckedState->setPlaceholderText( QStringLiteral(
"TRUE" ) );
32 leUncheckedState->setPlaceholderText( QStringLiteral(
"FALSE" ) );
40 cfg.insert( QStringLiteral(
"CheckedState" ), leCheckedState->text() );
41 cfg.insert( QStringLiteral(
"UncheckedState" ), leUncheckedState->text() );
48 if (
layer()->fields().at(
field() ).type() != QVariant::Bool )
50 leCheckedState->setText(
config.value( QStringLiteral(
"CheckedState" ) ).toString() );
51 leUncheckedState->setText(
config.value( QStringLiteral(
"UncheckedState" ) ).toString() );