Showing the changes to libraries/script-engine/src/TabletScriptingInterface.cpp (1 of 5 files). Show all
Unified · Split
| @@ -614,15 +614,6 @@ void TabletProxy::removeButton(QObject* tabletButtonProxy) { · 613 unmodified lines | |||
| 614 | } | 614 | } |
| 615 | } | 615 | } |
| 616 | 616 | ||
| 617 | void TabletProxy::updateAudioBar(const double micLevel) { | ||
| 618 | auto tablet = getQmlTablet(); | ||
| 619 | if (!tablet) { | ||
| 620 | //qCCritical(scriptengine) << "Could not find tablet in TabletRoot.qml"; | ||
| 621 | } else { | ||
| 622 | QMetaObject::invokeMethod(tablet, "setMicLevel", Qt::AutoConnection, Q_ARG(QVariant, QVariant(micLevel))); | ||
| 623 | } | ||
| 624 | } | ||
| 625 | |||
| 626 | void TabletProxy::emitScriptEvent(QVariant msg) { | 617 | void TabletProxy::emitScriptEvent(QVariant msg) { |
| 627 | if (!_toolbarMode && _qmlOffscreenSurface) { | 618 | if (!_toolbarMode && _qmlOffscreenSurface) { |
| 628 | QMetaObject::invokeMethod(_qmlOffscreenSurface, "emitScriptEvent", Qt::AutoConnection, Q_ARG(QVariant, msg)); | 619 | QMetaObject::invokeMethod(_qmlOffscreenSurface, "emitScriptEvent", Qt::AutoConnection, Q_ARG(QVariant, msg)); |