History

Change the "Mute" tablet button to "Audio"

David Rowe committed 9 years ago

Commit 77f0fb11 parent 98c1a186 files · +52 −16Browse files

Showing the changes to libraries/script-engine/src/TabletScriptingInterface.cpp (1 of 6 files). Show all

Unified · Split

libraries/script-engine/src/TabletScriptingInterface.cpp+2−1
@@ -213,10 +213,11 @@ void TabletProxy::setQmlTabletRoot(QQuickItem* qmlTabletRoot, QObject* qmlOffscr · 212 unmodified lines
213213 }
214214 }
215215
216−void TabletProxy::gotoMenuScreen() {
216+void TabletProxy::gotoMenuScreen(const QString& submenu) {
217217 if (_qmlTabletRoot) {
218218 if (_state != State::Menu) {
219219 removeButtonsFromHomeScreen();
220+ QMetaObject::invokeMethod(_qmlTabletRoot, "setOption", Q_ARG(const QVariant&, QVariant(submenu)));
220221 auto loader = _qmlTabletRoot->findChild<QQuickItem*>("loader");
221222 QObject::connect(loader, SIGNAL(loaded()), this, SLOT(addButtonsToMenuScreen()), Qt::DirectConnection);
222223 QMetaObject::invokeMethod(_qmlTabletRoot, "loadSource", Q_ARG(const QVariant&, QVariant(VRMENU_SOURCE_URL)));