History

allow moving of location from DataWebDialog for locations

Stephen Birarda committed 12 years ago

Commit 523a4e61 parent 84df6053 files · +58 −6Browse files

Showing the changes to interface/src/ui/DataWebDialog.cpp (1 of 3 files). Show all

Unified · Split

interface/src/ui/DataWebDialog.cpp+3−6
@@ -14,9 +14,9 @@ · 13 unmodified lines
1414
1515 #include <AccountManager.h>
1616 #include <LimitedNodeList.h>
17−#include <OAuthNetworkAccessManager.h>
1817
1918 #include "Application.h"
19+#include "DataWebPage.h"
2020
2121 #include "DataWebDialog.h"
2222
@@ -24,11 +24,8 @@ DataWebDialog::DataWebDialog() { · 1 unmodified line
2424 // make sure the dialog deletes itself when it closes
2525 setAttribute(Qt::WA_DeleteOnClose);
2626
27− // use an OAuthNetworkAccessManager instead of regular QNetworkAccessManager so our requests are authed
28− page()->setNetworkAccessManager(OAuthNetworkAccessManager::getInstance());
29−
30− // have the page delegate external links so they can be captured by the Application in case they are a hifi link
31− page()->setLinkDelegationPolicy(QWebPage::DelegateExternalLinks);
27+ // set our page to a DataWebPage
28+ setPage(new DataWebPage(this));
3229
3330 // have the Application handle external links
3431 connect(this, &QWebView::linkClicked, Application::getInstance(), &Application::openUrl);