}
-bool GuiLabel::initialiseParams(std::string const & data)
+bool GuiLabel::initialiseParams(std::string const & sdata)
{
InsetCommandParams p(insetCode());
- if (!InsetCommand::string2params(data, p))
+ if (!InsetCommand::string2params(sdata, p))
return false;
keywordED->setText(toqstr(p["name"]));
return true;
}
-bool GuiLabel::checkWidgets() const
+bool GuiLabel::checkWidgets(bool readonly) const
{
+ keywordED->setReadOnly(readonly);
if (!InsetParamsWidget::checkWidgets())
return false;
return !keywordED->text().isEmpty();