]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/QNote.C
Port of Martin Vermeer's QNote work: fix of framed and shaded note.
[lyx.git] / src / frontends / qt4 / QNote.C
index fb005d3857d2c0ec47454e9d1da90c40dc405ef2..24118ad6d551913276534593fb3bc12757b6373a 100644 (file)
@@ -58,6 +58,12 @@ void QNote::update_contents()
        case InsetNoteParams::Greyedout:
                rb = dialog_->greyedoutRB;
                break;
+       case InsetNoteParams::Framed:
+               rb = dialog_->framedRB;
+               break;
+       case InsetNoteParams::Shaded:
+               rb = dialog_->shadedRB;
+               break;
        }
 
        rb->setChecked(true);
@@ -72,6 +78,10 @@ void QNote::apply()
                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;