mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-07 08:35:16 -04:00
Fxed to get work Copy RetroShare Link
*Fxed to get work Copy RetroShare Link *Fxing margins for compact ui *Fixing darkstylsheets
This commit is contained in:
parent
e1ca1e137c
commit
d122b3f1e5
5 changed files with 40 additions and 2 deletions
|
@ -20,6 +20,7 @@
|
|||
|
||||
#include <QDateTime>
|
||||
#include <QMenu>
|
||||
#include <QMessageBox>
|
||||
#include <QStyle>
|
||||
#include <QTextDocument>
|
||||
#include <QToolButton>
|
||||
|
@ -27,6 +28,7 @@
|
|||
#include "rshare.h"
|
||||
#include "BoardPostDisplayWidget.h"
|
||||
#include "PhotoView.h"
|
||||
#include "gui/RetroShareLink.h"
|
||||
#include "gui/gxs/GxsIdDetails.h"
|
||||
#include "util/misc.h"
|
||||
#include "gui/common/FilesDefs.h"
|
||||
|
@ -165,6 +167,22 @@ void BoardPostDisplayWidgetBase::showAuthorInPeople()
|
|||
idDialog->navigate(RsGxsId(mPost.mMeta.mAuthorId));
|
||||
}
|
||||
|
||||
void BoardPostDisplayWidgetBase::copyMessageLink()
|
||||
{
|
||||
if (mPost.mMeta.mGroupId.isNull() || mPost.mMeta.mMsgId.isNull()) {
|
||||
return;
|
||||
}
|
||||
|
||||
RetroShareLink link = RetroShareLink::createGxsMessageLink(RetroShareLink::TYPE_POSTED, mPost.mMeta.mGroupId, mPost.mMeta.mMsgId, QString::fromUtf8(mPost.mMeta.mMsgName.c_str()));
|
||||
|
||||
if (link.valid()) {
|
||||
QList<RetroShareLink> urls;
|
||||
urls.push_back(link);
|
||||
RSLinkClipboard::copyLinks(urls);
|
||||
QMessageBox::information(NULL,tr("information"),tr("The Retrohare link was copied to your clipboard.")) ;
|
||||
}
|
||||
}
|
||||
|
||||
void BoardPostDisplayWidgetBase::setup()
|
||||
{
|
||||
// show/hide things based on the view type
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue