mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 19:25:39 +00:00
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:
parent
ccc96c4993
commit
38af9ccac5
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user