From 6836e00c071f4417e58d3fbd140e0b3c37ef79d0 Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Sun, 10 Dec 2006 10:31:42 +0000 Subject: [PATCH] eliminate some occurances of fromqstr git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@16228 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/QCitation.C | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/frontends/qt4/QCitation.C b/src/frontends/qt4/QCitation.C index 780c5c2e85..dbd5d7333d 100644 --- a/src/frontends/qt4/QCitation.C +++ b/src/frontends/qt4/QCitation.C @@ -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); -- 2.39.5