mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-25 17:21:05 -04:00
Added new url handler to QDesktopServices for the handling of RetroShare-Links application (RetroShare) wide.
Removed all connects of the signal anchorClicked of the QTextBrowser instances. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3814 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
7a1cd7841c
commit
8c2f06d963
14 changed files with 22 additions and 65 deletions
|
@ -26,7 +26,6 @@
|
|||
#include <QItemDelegate>
|
||||
|
||||
#include "ForumsDialog.h"
|
||||
#include "RetroShareLink.h"
|
||||
#include "forums/CreateForum.h"
|
||||
#include "forums/CreateForumMsg.h"
|
||||
#include "forums/ForumDetails.h"
|
||||
|
@ -154,7 +153,6 @@ ForumsDialog::ForumsDialog(QWidget *parent)
|
|||
connect( ui.threadTreeWidget, SIGNAL( itemSelectionChanged() ), this, SLOT( changedThread () ) );
|
||||
connect( ui.threadTreeWidget, SIGNAL( itemClicked(QTreeWidgetItem*,int)), this, SLOT( clickedThread (QTreeWidgetItem*,int) ) );
|
||||
connect( ui.viewBox, SIGNAL( currentIndexChanged ( int ) ), this, SLOT( changedViewBox () ) );
|
||||
connect( ui.postText, SIGNAL( anchorClicked(const QUrl &)), SLOT(anchorClicked(const QUrl &)));
|
||||
|
||||
connect(ui.expandButton, SIGNAL(clicked()), this, SLOT(togglethreadview()));
|
||||
connect(ui.previousButton, SIGNAL(clicked()), this, SLOT(previousMessage()));
|
||||
|
@ -200,9 +198,6 @@ ForumsDialog::ForumsDialog(QWidget *parent)
|
|||
forummenu->addSeparator();
|
||||
ui.forumpushButton->setMenu(forummenu);
|
||||
|
||||
ui.postText->setOpenExternalLinks ( false );
|
||||
ui.postText->setOpenLinks ( false );
|
||||
|
||||
/* create forum tree */
|
||||
m_ItemFont = QFont("ARIAL", 10);
|
||||
m_ItemFont.setBold(true);
|
||||
|
@ -1721,15 +1716,6 @@ void ForumsDialog::replytomessage()
|
|||
}
|
||||
}
|
||||
|
||||
void ForumsDialog::anchorClicked (const QUrl& link )
|
||||
{
|
||||
#ifdef FORUM_DEBUG
|
||||
std::cerr << "ForumsDialog::anchorClicked link.scheme() : " << link.scheme().toStdString() << std::endl;
|
||||
#endif
|
||||
|
||||
RetroShareLink::processUrl(link, RSLINK_PROCESS_NOTIFY_ALL);
|
||||
}
|
||||
|
||||
void ForumsDialog::filterRegExpChanged()
|
||||
{
|
||||
// QRegExp regExp(ui.filterPatternLineEdit->text(), Qt::CaseInsensitive , QRegExp::FixedString);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue