]> git.lyx.org Git - features.git/blobdiff - src/frontends/qt4/QIndex.C
Use the new InsetCommandParams interface (frontend part), from Ugras and me
[features.git] / src / frontends / qt4 / QIndex.C
index 0bcae0cdcd8c47604ac8d22499d8083e77d54f7f..47ba8ab94c5cdfc6bcd159960fb6d4967dbe857d 100644 (file)
@@ -50,7 +50,7 @@ void QIndex::build_dialog()
 
 void QIndex::update_contents()
 {
-       string const contents = controller().params().getContents();
+       docstring const contents = controller().params()["name"];
        dialog_->keywordED->setText(toqstr(contents));
 
        bc().valid(!contents.empty());
@@ -59,7 +59,7 @@ void QIndex::update_contents()
 
 void QIndex::apply()
 {
-       controller().params().setContents(fromqstr(dialog_->keywordED->text()));
+       controller().params()["name"] = qstring_to_ucs4(dialog_->keywordED->text());
 }