I hope this is the final adjustment to enable/disable

the placement options in the qt float dialog correctly.
Yesterday's fix still had some glitches.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8590 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2004-04-02 09:32:45 +00:00
parent 071120c767
commit 5d2127ac8e
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2004-01-04 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
* floatplacement.[Ch]: another adjustment of placement enabling.
2004-01-04 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
* floatplacement.[Ch]: correct fix for enabling of placement

View File

@ -146,6 +146,7 @@ void FloatPlacement::set(string const & placement)
ignoreCB->setChecked(force);
ignoreCB->setEnabled(top || bottom || page || here);
heredefinitelyCB->setChecked(here_definitely);
checkAllowed();
}
@ -163,6 +164,7 @@ void FloatPlacement::set(InsetFloatParams const & params)
sidewaysCB->setChecked(params.sideways);
sidewaysCB->setEnabled(params.type == "figure"
|| params.type == "table");
checkAllowed();
}
@ -271,4 +273,5 @@ void FloatPlacement::checkAllowed()
ignoreCB->setEnabled(!sideways && !defaults && ignore);
herepossiblyCB->setEnabled(!sideways && !defaults && !span);
heredefinitelyCB->setEnabled(!sideways && !defaults && !span);
spanCB->setEnabled(!sideways);
}