]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiSelection.cpp
fix completion painting for RTL (inline completion and completion list)
[lyx.git] / src / frontends / qt4 / GuiSelection.cpp
index e53c8b6cc8406dbb1bacb748a01a7d5acd72cee3..e6ee835521f2b4adb555f0522027a8ce037da1b8 100644 (file)
@@ -15,8 +15,8 @@
 #include "GuiSelection.h"
 
 #include "qt_helpers.h"
-#include "debug.h"
 
+#include "support/debug.h"
 #include "support/lstrings.h"
 
 #include <QApplication>
@@ -34,7 +34,7 @@ using support::externalLineEnding;
 GuiSelection::GuiSelection()
        : selection_supported_(qApp->clipboard()->supportsSelection())
 {
-       connect(qApp->clipboard(), SIGNAL(dataChanged()),
+       connect(qApp->clipboard(), SIGNAL(selectionChanged()),
                this, SLOT(on_dataChanged()));
        // initialize clipboard status.
        on_dataChanged();
@@ -71,7 +71,7 @@ docstring const GuiSelection::get() const
 {
        QString const str = qApp->clipboard()->text(QClipboard::Selection)
                                .normalized(QString::NormalizationForm_C);
-       LYXERR(Debug::ACTION, "GuiSelection::get: " << fromqstr(str));
+       LYXERR(Debug::ACTION, "GuiSelection::get: " << str);
        if (str.isNull())
                return docstring();
 
@@ -100,6 +100,8 @@ bool GuiSelection::empty() const
        if (!selection_supported_)
                return true;
 
+       LYXERR(Debug::ACTION, "GuiSelection::empty: " << text_selection_empty_);
+
        return text_selection_empty_;
 }