]> 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 d888ae07d82d833175fa6f0daafdd9ccc7d179c6..78d1e3fc43dacc8d5b88e8ae86ab9032919cdc3b 100644 (file)
@@ -54,22 +54,23 @@ docstring GuiLabel::dialogToParams() const
 {
        InsetCommandParams params(insetCode());
        params["name"] = qstring_to_ucs4(keywordED->text());
-       return from_ascii(InsetLabel::params2string(params));
+       return from_utf8(InsetLabel::params2string(params));
 }
 
 
-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();