mirror of
https://github.com/JulianGro/overte.git
synced 2025-05-01 10:44:39 +02:00
29 lines
760 B
C++
29 lines
760 B
C++
//
|
|
// MarketplaceDialog.cpp
|
|
//
|
|
// Created by Bradley Austin Davis on 2015/04/14
|
|
// Copyright 2015 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 "Application.h"
|
|
#include "MarketplaceDialog.h"
|
|
#include "DependencyManager.h"
|
|
|
|
HIFI_QML_DEF(MarketplaceDialog)
|
|
|
|
|
|
MarketplaceDialog::MarketplaceDialog(QQuickItem* parent) : OffscreenQmlDialog(parent) {
|
|
}
|
|
|
|
bool MarketplaceDialog::navigationRequested(const QString& url) {
|
|
qDebug() << url;
|
|
if (qApp->canAcceptURL(url)) {
|
|
if (qApp->acceptURL(url)) {
|
|
return false; // we handled it, so QWebPage doesn't need to handle it
|
|
}
|
|
}
|
|
return true;
|
|
}
|