GuiBox.cpp:

- disable width widgets for framed.sty boxes (bug 5069).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25727 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2008-07-20 16:57:37 +00:00
parent ccc96c4993
commit 38af9ccac5

View File

@ -186,6 +186,8 @@ void GuiBox::typeChanged(int index)
pagebreakCB->setChecked(false);
int itype = innerBoxCO->currentIndex();
pagebreakCB->setEnabled(index == 1 && itype == 0);
widthED->setEnabled(index != 5);
widthUnitsLC->setEnabled(index != 5);
setInnerType(frameless, itype);
}
@ -208,6 +210,8 @@ void GuiBox::pagebreakClicked()
{
bool pbreak = (pagebreakCB->checkState() == Qt::Checked);
innerBoxCO->setEnabled(!pbreak);
widthED->setEnabled(!pbreak);
widthUnitsLC->setEnabled(!pbreak);
if (pbreak) {
valignCO->setEnabled(false);
ialignCO->setEnabled(false);