31 v = mGroupBox->isChecked() ?
config(
"CheckedState" ) :
config(
"UncheckedState" );
34 v = mCheckBox->isChecked() ?
config(
"CheckedState" ) :
config(
"UncheckedState" );
42 return new QCheckBox( parent );
47 mCheckBox = qobject_cast<QCheckBox*>( editor );
48 mGroupBox = qobject_cast<QGroupBox*>( editor );
51 connect( mCheckBox, SIGNAL( toggled(
bool ) ),
this, SLOT(
valueChanged(
bool ) ) );
53 connect( mGroupBox, SIGNAL( toggled(
bool ) ),
this, SLOT(
valueChanged(
bool ) ) );
60 mGroupBox->setChecked( value ==
config(
"CheckedState" ) );
65 mCheckBox->setChecked( value ==
config(
"CheckedState" ) );