Skip to content
Permalink
Browse files

make welcomepage proxy aware

  • Loading branch information
jef-n committed Sep 18, 2015
1 parent 065bb10 commit 8b9e0b65d63fb6de8a12f588cc3ff3c09e92ed01
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/app/qgswelcomepage.cpp
@@ -18,6 +18,7 @@
#include "qgisapp.h"
#include "qgsversioninfo.h"
#include "qgsapplication.h"
#include "qgsnetworkaccessmanager.h"

#include <QHBoxLayout>
#include <QVBoxLayout>
@@ -56,7 +57,9 @@ QgsWelcomePage::QgsWelcomePage( QWidget* parent )
QLabel* whatsNewTitle = new QLabel( QString( "<h1>%1</h1>" ).arg( tr( "QGIS News" ) ) );
whatsNewContainer->layout()->addWidget( whatsNewTitle );

QgsWebView* whatsNewPage = new QgsWebView();
QgsWebView *whatsNewPage = new QgsWebView();
whatsNewPage->page()->setNetworkAccessManager( QgsNetworkAccessManager::instance() );

whatsNewPage->setUrl( QUrl::fromLocalFile( QgsApplication::whatsNewFilePath() ) );
whatsNewPage->page()->setLinkDelegationPolicy( QWebPage::DelegateAllLinks );
whatsNewPage->setContextMenuPolicy( Qt::NoContextMenu );

0 comments on commit 8b9e0b6

Please sign in to comment.
You can’t perform that action at this time.