X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Ffrontends%2Fqt4%2FGuiSelection.cpp;h=362da4aba54d1c9c074c19ca974aa6fd3fdc3721;hb=425d092204118ea6c24c28e85fdf03fcf2bb51a4;hp=ab610765c453860e003ccc950ac8dc563f5d9c4d;hpb=8b62eb2c641c3e79906ffba7a5d363a4538179ad;p=lyx.git diff --git a/src/frontends/qt4/GuiSelection.cpp b/src/frontends/qt4/GuiSelection.cpp index ab610765c4..362da4aba5 100644 --- a/src/frontends/qt4/GuiSelection.cpp +++ b/src/frontends/qt4/GuiSelection.cpp @@ -27,9 +27,6 @@ namespace lyx { namespace frontend { -using support::internalLineEnding; -using support::externalLineEnding; - GuiSelection::GuiSelection() : schedule_check_(true), @@ -75,7 +72,7 @@ docstring const GuiSelection::get() const if (str.isNull()) return docstring(); - return internalLineEnding(qstring_to_ucs4(str)); + return internalLineEnding(str); } @@ -83,7 +80,7 @@ void GuiSelection::put(docstring const & str) { LYXERR(Debug::SELECTION, "GuiSelection::put: " << to_utf8(str)); - qApp->clipboard()->setText(toqstr(externalLineEnding(str)), + qApp->clipboard()->setText(externalLineEnding(str), QClipboard::Selection); } @@ -116,4 +113,4 @@ bool GuiSelection::empty() const } // namespace frontend } // namespace lyx -#include "GuiSelection_moc.cpp" +#include "moc_GuiSelection.cpp"