mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 18:36:45 +02:00
Miscellaneous tidying
This commit is contained in:
parent
3e94a034ca
commit
cd7e1d0865
2 changed files with 2 additions and 2 deletions
|
@ -79,7 +79,7 @@ public:
|
||||||
public slots:
|
public slots:
|
||||||
|
|
||||||
/**jsdoc
|
/**jsdoc
|
||||||
* Display a web page in an Interface browser window.
|
* Display a web page in an Interface browser window or the tablet.
|
||||||
* @function About.openUrl
|
* @function About.openUrl
|
||||||
* @param {string} url - The URL of the web page you want to view in Interface.
|
* @param {string} url - The URL of the web page you want to view in Interface.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -650,7 +650,7 @@ void WindowScriptingInterface::openWebBrowser(const QString& url) {
|
||||||
QMetaObject::invokeMethod(this, "openWebBrowser", Q_ARG(const QString&, url));
|
QMetaObject::invokeMethod(this, "openWebBrowser", Q_ARG(const QString&, url));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto offscreenUi = DependencyManager::get<OffscreenUi>();
|
auto offscreenUi = DependencyManager::get<OffscreenUi>();
|
||||||
offscreenUi->load("Browser.qml", [=](QQmlContext* context, QObject* newObject) {
|
offscreenUi->load("Browser.qml", [=](QQmlContext* context, QObject* newObject) {
|
||||||
if (!url.isEmpty()) {
|
if (!url.isEmpty()) {
|
||||||
|
|
Loading…
Reference in a new issue