mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-15 18:28:44 +02:00
Fix for empty toolbar issue
This commit is contained in:
parent
67302cbd2b
commit
03b6280ed0
3 changed files with 5 additions and 4 deletions
|
@ -125,9 +125,6 @@ Window {
|
||||||
}
|
}
|
||||||
|
|
||||||
function addButton(properties) {
|
function addButton(properties) {
|
||||||
|
|
||||||
visible = true;
|
|
||||||
|
|
||||||
properties = properties || {}
|
properties = properties || {}
|
||||||
|
|
||||||
// If a name is specified, then check if there's an existing button with that name
|
// If a name is specified, then check if there's an existing button with that name
|
||||||
|
|
|
@ -14,6 +14,7 @@
|
||||||
#include "DependencyManager.h"
|
#include "DependencyManager.h"
|
||||||
#include <PathUtils.h>
|
#include <PathUtils.h>
|
||||||
#include <QmlWindowClass.h>
|
#include <QmlWindowClass.h>
|
||||||
|
#include <QQmlProperty>
|
||||||
#include <RegisteredMetaTypes.h>
|
#include <RegisteredMetaTypes.h>
|
||||||
#include "ScriptEngineLogging.h"
|
#include "ScriptEngineLogging.h"
|
||||||
#include <OffscreenUi.h>
|
#include <OffscreenUi.h>
|
||||||
|
@ -543,6 +544,9 @@ void TabletProxy::addButtonsToToolbar() {
|
||||||
qCWarning(scriptengine) << "ToolbarProxy addButton has no result";
|
qCWarning(scriptengine) << "ToolbarProxy addButton has no result";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// make the toolbar visible
|
||||||
|
QMetaObject::invokeMethod(toolbarProxy, "writeProperty", Qt::AutoConnection, Q_ARG(QString, "visible"), Q_ARG(QVariant, QVariant(true)));
|
||||||
}
|
}
|
||||||
|
|
||||||
void TabletProxy::removeButtonsFromToolbar() {
|
void TabletProxy::removeButtonsFromToolbar() {
|
||||||
|
|
|
@ -173,7 +173,7 @@ signals:
|
||||||
void fromQml(QVariant msg);
|
void fromQml(QVariant msg);
|
||||||
|
|
||||||
/**jsdoc
|
/**jsdoc
|
||||||
* Signales when this tablet screen changes.
|
* Signaled when this tablet screen changes.
|
||||||
* @function TabletProxy#screenChanged
|
* @function TabletProxy#screenChanged
|
||||||
* @param type {string} - "Home", "Web", "Menu", "QML", "Closed"
|
* @param type {string} - "Home", "Web", "Menu", "QML", "Closed"
|
||||||
* @param url {string} - only valid for Web and QML.
|
* @param url {string} - only valid for Web and QML.
|
||||||
|
|
Loading…
Reference in a new issue