mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-13 17:20:55 +00:00
* 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:
parent
0d8ca0d309
commit
7890255bf8
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user