mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-11-25 02:03:30 -05:00
enabled Paste Links Full for Forum Posts, fixed Turkish translation
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2605 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
594defb1bd
commit
beec507b1c
4 changed files with 18 additions and 11 deletions
|
|
@ -91,11 +91,13 @@ void CreateForumMsg::forumMessageCostumPopupMenu( QPoint point )
|
|||
|
||||
pasteLinkAct = new QAction(QIcon(":/images/pasterslink.png"), tr( "Paste retroshare Link" ), this );
|
||||
connect( pasteLinkAct , SIGNAL( triggered() ), this, SLOT( pasteLink() ) );
|
||||
//pasteLinkAct->setShortcut(QKeySequence::Paste);
|
||||
|
||||
pasteLinkFullAct = new QAction(QIcon(":/images/pasterslink.png"), tr( "Paste retroshare Link Full" ), this );
|
||||
connect( pasteLinkFullAct , SIGNAL( triggered() ), this, SLOT( pasteLinkFull() ) );
|
||||
|
||||
contextMnu->clear();
|
||||
contextMnu->addAction( pasteLinkAct);
|
||||
contextMnu->addAction( pasteLinkFullAct);
|
||||
|
||||
QMouseEvent *mevent = new QMouseEvent( QEvent::MouseButtonPress, point, Qt::RightButton, Qt::RightButton, Qt::NoModifier );
|
||||
contextMnu->exec( mevent->globalPos() );
|
||||
|
|
@ -421,3 +423,8 @@ void CreateForumMsg::pasteLink()
|
|||
ui.forumMessage->insertHtml(RSLinkClipboard::toHtml()) ;
|
||||
}
|
||||
|
||||
void CreateForumMsg::pasteLinkFull()
|
||||
{
|
||||
ui.forumMessage->insertHtml(RSLinkClipboard::toHtmlFull()) ;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ private slots:
|
|||
void createMsg();
|
||||
void cancelMsg();
|
||||
void pasteLink();
|
||||
|
||||
void pasteLinkFull();
|
||||
|
||||
void smileyWidgetForums();
|
||||
void addSmileys();
|
||||
|
|
@ -65,6 +65,7 @@ private:
|
|||
|
||||
/** Defines the actions for the context menu */
|
||||
QAction* pasteLinkAct;
|
||||
QAction* pasteLinkFullAct;
|
||||
|
||||
std::string mForumId;
|
||||
std::string mParentId;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue