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:
thunder2 2010-11-18 01:18:31 +00:00
parent 7a1cd7841c
commit 8c2f06d963
14 changed files with 22 additions and 65 deletions

View file

@ -33,7 +33,6 @@
#include "MessagesDialog.h"
#include "msgs/MessageComposer.h"
#include "gui/RetroShareLink.h"
#include "util/printpreview.h"
#include "settings/rsharesettings.h"
#include "util/misc.h"
@ -238,8 +237,6 @@ MessagesDialog::MessagesDialog(QWidget *parent)
connect(ui.expandFilesButton, SIGNAL(clicked()), this, SLOT(togglefileview()));
connect(ui.downloadButton, SIGNAL(clicked()), this, SLOT(getallrecommended()));
connect( ui.msgText, SIGNAL( anchorClicked(const QUrl &)), SLOT(anchorClicked(const QUrl &)));
connect(ui.actionTextBesideIcon, SIGNAL(triggered()), this, SLOT(buttonstextbesideicon()));
connect(ui.actionIconOnly, SIGNAL(triggered()), this, SLOT(buttonsicononly()));
connect(ui.actionTextUnderIcon, SIGNAL(triggered()), this, SLOT(buttonstextundericon()));
@ -256,8 +253,6 @@ MessagesDialog::MessagesDialog(QWidget *parent)
connect(ui.ccText, SIGNAL(linkActivated(QString)), this, SLOT(linkActivated(QString)));
connect(ui.bccText, SIGNAL(linkActivated(QString)), this, SLOT(linkActivated(QString)));
ui.msgText->setOpenLinks(false);
m_eListMode = LIST_NOTHING;
mCurrCertId = "";
@ -1844,13 +1839,6 @@ void MessagesDialog::printpreview()
preview->show();
}
void MessagesDialog::anchorClicked (const QUrl& link )
{
std::cerr << "MessagesDialog::anchorClicked link.scheme() : " << link.scheme().toStdString() << std::endl;
RetroShareLink::processUrl(link, RSLINK_PROCESS_NOTIFY_ALL);
}
bool MessagesDialog::fileSave()
{
if (fileName.isEmpty())