Fixes: Prevent help view from accepting file manager drops

RevBy: Eike
This commit is contained in:
Friedemann Kleint
2009-02-10 11:38:04 +01:00
parent 11cbfbda11
commit be38c9b4f0

View File

@@ -167,7 +167,7 @@ private:
HelpPage::HelpPage(CentralWidget *central, QHelpEngine *engine, QObject *parent)
: QWebPage(parent), centralWidget(central), helpEngine(engine)
{
{
}
QWebPage *HelpPage::createWindow(QWebPage::WebWindowType)
@@ -215,7 +215,7 @@ bool HelpPage::acceptNavigationRequest(QWebFrame *,
HelpViewer::HelpViewer(QHelpEngine *engine, CentralWidget *parent)
: QWebView(parent), helpEngine(engine), parentWidget(parent)
{
{
setPage(new HelpPage(parent, helpEngine, this));
page()->setNetworkAccessManager(new HelpNetworkAccessManager(engine, this));
@@ -238,6 +238,7 @@ HelpViewer::HelpViewer(QHelpEngine *engine, CentralWidget *parent)
connect(page(), SIGNAL(linkHovered(QString, QString, QString)), this,
SIGNAL(highlighted(QString)));
connect(this, SIGNAL(urlChanged(QUrl)), this, SIGNAL(sourceChanged(QUrl)));
setAcceptDrops(false);
}
void HelpViewer::setSource(const QUrl &url)