mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-24 00:40:11 -05:00
fixed copy comment in channels/post/comment (and GXS comments in general)
This commit is contained in:
parent
ade297f257
commit
583431852c
@ -464,11 +464,7 @@ void GxsCommentTreeWidget::replyToComment()
|
|||||||
void GxsCommentTreeWidget::copyComment()
|
void GxsCommentTreeWidget::copyComment()
|
||||||
{
|
{
|
||||||
QString txt = dynamic_cast<QAction*>(sender())->data().toString();
|
QString txt = dynamic_cast<QAction*>(sender())->data().toString();
|
||||||
|
QApplication::clipboard()->setText(txt) ;
|
||||||
QMimeData *mimeData = new QMimeData();
|
|
||||||
mimeData->setHtml("<html>"+txt+"</html>");
|
|
||||||
QClipboard *clipboard = QApplication::clipboard();
|
|
||||||
clipboard->setMimeData(mimeData, QClipboard::Clipboard);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void GxsCommentTreeWidget::setup(RsGxsCommentService *comment_service)
|
void GxsCommentTreeWidget::setup(RsGxsCommentService *comment_service)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user