]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiSelection.cpp
* fix spelling in comments to please John.
[lyx.git] / src / frontends / qt4 / GuiSelection.cpp
index 24510bcc3a3e8f6319c41eb5f92a65cfb7772081..362da4aba54d1c9c074c19ca974aa6fd3fdc3721 100644 (file)
 namespace lyx {
 namespace frontend {
 
-using support::internalLineEnding;
-using support::externalLineEnding;
-
 
 GuiSelection::GuiSelection()
-       : selection_supported_(qApp->clipboard()->supportsSelection()),
-       schedule_check_(true)
+       : schedule_check_(true),
+       selection_supported_(qApp->clipboard()->supportsSelection())
 {
        connect(qApp->clipboard(), SIGNAL(selectionChanged()),
                this, SLOT(on_dataChanged()));
@@ -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"