* GuiBox.cpp:

- fix enabling behaviour of height widgets.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@28155 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2009-01-14 14:25:52 +00:00
parent 0d8ca0d309
commit 7890255bf8

View File

@ -162,10 +162,8 @@ void GuiBox::innerBoxChanged(QString const & str)
halignCO->setEnabled(!ibox);
heightCB->setEnabled(ibox);
pagebreakCB->setEnabled(!ibox && typeCO->currentIndex() == 1);
if (heightCB->checkState() == Qt::Checked && ibox) {
heightED->setEnabled(true);
heightUnitsLC->setEnabled(true);
}
heightED->setEnabled(heightCB->checkState() == Qt::Checked && ibox);
heightUnitsLC->setEnabled(heightCB->checkState() == Qt::Checked && ibox);
setSpecial(ibox);
}
@ -178,8 +176,8 @@ void GuiBox::typeChanged(int index)
ialignCO->setEnabled(true);
halignCO->setEnabled(false);
heightCB->setEnabled(true);
heightED->setEnabled(true);
heightUnitsLC->setEnabled(true);
heightED->setEnabled(heightCB->checkState() == Qt::Checked);
heightUnitsLC->setEnabled(heightCB->checkState() == Qt::Checked);
setSpecial(true);
}
if (index != 1)