Implement online help filter.

The search for remote content, like stl::vector in cpp-reference,
google, bing, wikipedia etc...

Task-number: QTCREATORBUG-1375
Reviewed-by: ck
This commit is contained in:
kh1
2010-07-16 11:15:54 +02:00
parent fff4203a46
commit 37efd0e10f
5 changed files with 429 additions and 1 deletions

View File

@@ -44,6 +44,7 @@
#include "indexwindow.h"
#include "openpagesmanager.h"
#include "openpagesmodel.h"
#include "remotehelpfilter.h"
#include "searchwidget.h"
#include <coreplugin/actionmanager/actionmanager.h>
@@ -300,6 +301,11 @@ bool HelpPlugin::initialize(const QStringList &arguments, QString *error)
connect(helpIndexFilter, SIGNAL(linkActivated(QUrl)), this,
SLOT(switchToHelpMode(QUrl)));
RemoteHelpFilter *remoteHelpFilter = new RemoteHelpFilter();
addAutoReleasedObject(remoteHelpFilter);
connect(remoteHelpFilter, SIGNAL(linkActivated(QUrl)), this,
SLOT(switchToHelpMode(QUrl)));
QDesktopServices::setUrlHandler("qthelp", this, "handleHelpRequest");
connect(m_core->modeManager(), SIGNAL(currentModeChanged(Core::IMode*)),
this, SLOT(modeChanged(Core::IMode*)));