27 mDisplayAsTextComboBox->setCurrentIndex( 0 );
33 if ( vl->
fields().
at( fieldIdx ).
type() == QVariant::Bool )
35 leCheckedState->setEnabled(
false );
36 leUncheckedState->setEnabled(
false );
38 leCheckedState->setPlaceholderText( QStringLiteral(
"TRUE" ) );
39 leUncheckedState->setPlaceholderText( QStringLiteral(
"FALSE" ) );
47 cfg.insert( QStringLiteral(
"CheckedState" ), leCheckedState->text() );
48 cfg.insert( QStringLiteral(
"UncheckedState" ), leUncheckedState->text() );
49 cfg.insert( QStringLiteral(
"TextDisplayMethod" ), mDisplayAsTextComboBox->currentData().toInt() );
56 if (
layer()->fields().at(
field() ).type() != QVariant::Bool )
58 leCheckedState->setText(
config.value( QStringLiteral(
"CheckedState" ) ).toString() );
59 leUncheckedState->setText(
config.value( QStringLiteral(
"UncheckedState" ) ).toString() );