projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d474ca8
)
Make X11 selection work correctly (marked text in the ChatWidget now goes into XSelec...
author
Manuel Nickschas
<sputnick@quassel-irc.org>
Thu, 3 Apr 2008 13:43:54 +0000
(13:43 +0000)
committer
Manuel Nickschas
<sputnick@quassel-irc.org>
Thu, 3 Apr 2008 13:43:54 +0000
(13:43 +0000)
src/qtui/chatwidget.cpp
patch
|
blob
|
history
diff --git
a/src/qtui/chatwidget.cpp
b/src/qtui/chatwidget.cpp
index
85d8cad
..
6c2da6e
100644
(file)
--- a/
src/qtui/chatwidget.cpp
+++ b/
src/qtui/chatwidget.cpp
@@
-411,7
+411,11
@@
void ChatWidget::mouseReleaseEvent(QMouseEvent *event) {
selectionStart = qMin(dragStartCursor, curCursor);
selectionEnd = qMax(dragStartCursor, curCursor);
// TODO Make X11SelectionMode configurable!
+#ifdef Q_WS_X11
+ QApplication::clipboard()->setText(selectionToString(), QClipboard::Selection);
+#else
QApplication::clipboard()->setText(selectionToString());
+#endif
break;
case MarkLines:
mouseMode = Normal;