[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdenonbeta/kopete/libkopete/ui
From: Jason Keirstead <jason () keirstead ! org>
Date: 2003-03-28 4:38:57
[Download RAW message or body]
CVS commit by brunes:
Copy text to both clipboards
M +8 -2 chatview.cpp 1.234
--- kdenonbeta/kopete/libkopete/ui/chatview.cpp #1.233:1.234
@@ -1004,5 +1004,8 @@ void ChatView::slotCopyURL()
HTMLAnchorElement a = activeElement;
if( !a.isNull() )
- QApplication::clipboard()->setText( a.href().string() );
+ {
+ QApplication::clipboard()->setText( a.href().string(), QClipboard::Clipboard );
+ QApplication::clipboard()->setText( a.href().string(), QClipboard::Selection );
+ }
}
@@ -1089,5 +1092,8 @@ void ChatView::copy()
if ( chatView->hasSelection() )
- QApplication::clipboard()->setText( chatView->selectedText() );
+ {
+ QApplication::clipboard()->setText( chatView->selectedText(), QClipboard::Clipboard );
+ QApplication::clipboard()->setText( chatView->selectedText(), QClipboard::Selection );
+ }
else
m_edit->copy();
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic