]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiLabel.cpp
Use <cstdint> instead of <boost/cstdint.hpp>
[lyx.git] / src / frontends / qt4 / GuiLabel.cpp
index 5d1ea4a3ef6aaa62efc09a43219a9e0954f67eda..78d1e3fc43dacc8d5b88e8ae86ab9032919cdc3b 100644 (file)
@@ -58,18 +58,19 @@ docstring GuiLabel::dialogToParams() const
 }
 
 
-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();