void QNote::update_contents()
{
- // FIXME: This needs fixing. Framed and Shaded is not working.
QRadioButton * rb = 0;
switch (controller().params().type) {
- case InsetNoteParams::Framed:
- //rb = dialog_->framedRB;
- rb = dialog_->greyedoutRB;
- break;
- case InsetNoteParams::Shaded:
- //rb = dialog_->shadedRB;
- rb = dialog_->greyedoutRB;
- break;
case InsetNoteParams::Note:
rb = dialog_->noteRB;
break;
case InsetNoteParams::Greyedout:
rb = dialog_->greyedoutRB;
break;
+ case InsetNoteParams::Framed:
+ rb = dialog_->framedRB;
+ break;
+ case InsetNoteParams::Shaded:
+ rb = dialog_->shadedRB;
+ break;
}
rb->setChecked(true);
type = InsetNoteParams::Greyedout;
else if (dialog_->commentRB->isChecked())
type = InsetNoteParams::Comment;
+ else if (dialog_->framedRB->isChecked())
+ type = InsetNoteParams::Framed;
+ else if (dialog_->shadedRB->isChecked())
+ type = InsetNoteParams::Shaded;
else
type = InsetNoteParams::Note;
connect( noteRB, SIGNAL( toggled(bool) ), this, SLOT( change_adaptor() ) );
connect( greyedoutRB, SIGNAL( toggled(bool) ), this, SLOT( change_adaptor() ) );
connect( commentRB, SIGNAL( toggled(bool) ), this, SLOT( change_adaptor() ) );
+ connect( framedRB, SIGNAL( toggled(bool) ), this, SLOT( change_adaptor() ) );
+ connect( shadedRB, SIGNAL( toggled(bool) ), this, SLOT( change_adaptor() ) );
}
</property>
</widget>
</item>
+ <item>
+ <widget class="QRadioButton" name="framedRB" >
+ <property name="toolTip" >
+ <string>Framed in box</string>
+ </property>
+ <property name="text" >
+ <string>&Framed</string>
+ </property>
+ </widget>
+ </item>
+ <item>
+ <widget class="QRadioButton" name="shadedRB" >
+ <property name="toolTip" >
+ <string>Box with shaded background</string>
+ </property>
+ <property name="text" >
+ <string>&Shaded</string>
+ </property>
+ </widget>
+ </item>
</layout>
</widget>
</item>