mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-05 17:09:56 +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);
|
halignCO->setEnabled(!ibox);
|
||||||
heightCB->setEnabled(ibox);
|
heightCB->setEnabled(ibox);
|
||||||
pagebreakCB->setEnabled(!ibox && typeCO->currentIndex() == 1);
|
pagebreakCB->setEnabled(!ibox && typeCO->currentIndex() == 1);
|
||||||
if (heightCB->checkState() == Qt::Checked && ibox) {
|
heightED->setEnabled(heightCB->checkState() == Qt::Checked && ibox);
|
||||||
heightED->setEnabled(true);
|
heightUnitsLC->setEnabled(heightCB->checkState() == Qt::Checked && ibox);
|
||||||
heightUnitsLC->setEnabled(true);
|
|
||||||
}
|
|
||||||
setSpecial(ibox);
|
setSpecial(ibox);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -178,8 +176,8 @@ void GuiBox::typeChanged(int index)
|
|||||||
ialignCO->setEnabled(true);
|
ialignCO->setEnabled(true);
|
||||||
halignCO->setEnabled(false);
|
halignCO->setEnabled(false);
|
||||||
heightCB->setEnabled(true);
|
heightCB->setEnabled(true);
|
||||||
heightED->setEnabled(true);
|
heightED->setEnabled(heightCB->checkState() == Qt::Checked);
|
||||||
heightUnitsLC->setEnabled(true);
|
heightUnitsLC->setEnabled(heightCB->checkState() == Qt::Checked);
|
||||||
setSpecial(true);
|
setSpecial(true);
|
||||||
}
|
}
|
||||||
if (index != 1)
|
if (index != 1)
|
||||||
|
Loading…
Reference in New Issue
Block a user