Stephen Birardafix typo in comment9f3d90812 years agoHistory
47 lines · 1.4 KB · C++
RawDownload
////  DataWebDialog.cpp//  interface/src/ui////  Created by Stephen Birarda on 2014-09-17.//  Copyright 2014 High Fidelity, Inc.////  Distributed under the Apache License, Version 2.0.//  See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html// #include <qwebview.h> #include <AccountManager.h>#include <LimitedNodeList.h>#include <OAuthNetworkAccessManager.h> #include "Application.h" #include "DataWebDialog.h" DataWebDialog::DataWebDialog() {    // make sure the dialog deletes itself when it closes    setAttribute(Qt::WA_DeleteOnClose);        // use an OAuthNetworkAccessManager instead of regular QNetworkAccessManager so our requests are authed    page()->setNetworkAccessManager(OAuthNetworkAccessManager::getInstance());        // have the page delegate external links so they can be captured by the Application in case they are a hifi link    page()->setLinkDelegationPolicy(QWebPage::DelegateExternalLinks);        // have the Application handle external links    connect(this, &QWebView::linkClicked, Application::getInstance(), &Application::openUrl);} DataWebDialog* DataWebDialog::dialogForPath(const QString& path) {    DataWebDialog* dialogWebView = new DataWebDialog();        QUrl dataWebUrl(DEFAULT_NODE_AUTH_URL);    dataWebUrl.setPath(path);        qDebug() << "Opening a data web dialog for" << dataWebUrl.toString();        dialogWebView->load(dataWebUrl);        return dialogWebView;}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t