]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiLine.cpp
rename buffer parameter math_number_before to math_numbering_side
[lyx.git] / src / frontends / qt4 / GuiLine.cpp
index 4ab2da8c942291efe06d70afa43e01b19475121d..2a8b9de2bc16429900fdb3d98c6da4af9c8037f0 100644 (file)
@@ -100,8 +100,14 @@ void GuiLine::paramsToDialog(Inset const * inset)
 }
 
 
-bool GuiLine::checkWidgets() const
+bool GuiLine::checkWidgets(bool readonly) const
 {
+       WidthLE->setReadOnly(readonly);
+       HeightLE->setReadOnly(readonly);
+       OffsetLE->setReadOnly(readonly);
+       OffsetUnitCO->setEnabled(!readonly);
+       HeightUnitCO->setEnabled(!readonly);
+       WidthUnitCO->setEnabled(!readonly);
        if (!InsetParamsWidget::checkWidgets())
                return false;
        // FIXME: this should be handled in unsignedGlueLengthValidator!