mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-22 16:37:28 +00:00
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:
parent
071120c767
commit
5d2127ac8e
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user