eliminate some occurances of fromqstr

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16228 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Georg Baum 2006-12-10 10:31:42 +00:00
parent 205cf77715
commit 6836e00c07

View File

@ -54,7 +54,7 @@ QCitation::QCitation(Dialog & parent)
void QCitation::apply(int const choice, bool const full, bool const force,
QString before, QString after)
QString before, QString after)
{
if (!isValid())
return;
@ -67,22 +67,22 @@ void QCitation::apply(int const choice, bool const full, bool const force,
.asLatexStr();
params().setCmdName(command);
params().setContents(fromqstr(selected_keys_.stringList().join(",")));
params().setSecOptions(fromqstr(before));
params().setOptions(fromqstr(after));
params()["key"] = qstring_to_ucs4(selected_keys_.stringList().join(","));
params()["before"] = qstring_to_ucs4(before);
params()["after"] = qstring_to_ucs4(after);
dispatchParams();
}
QString QCitation::textBefore()
{
return toqstr(params().getSecOptions());
return toqstr(params()["before"]);
}
QString QCitation::textAfter()
{
return toqstr(params().getOptions());
return toqstr(params()["after"]);
}
@ -93,7 +93,7 @@ void QCitation::updateModel()
available_keys_.setStringList(keys);
// Ditto for the keys cited in this inset
QString str = toqstr(params().getContents());
QString str = toqstr(params()["key"]);
if (!str.isEmpty()) {
keys = str.split(",");
selected_keys_.setStringList(keys);