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