History

revamp tablet MicBar

Zach Pomerantz committed 9 years ago

Commit c8268581 parent 497ee3a5 files · +224 −153Browse files

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

Unified · Split

libraries/script-engine/src/TabletScriptingInterface.cpp+0−9
@@ -614,15 +614,6 @@ void TabletProxy::removeButton(QObject* tabletButtonProxy) { · 613 unmodified lines
614 }614 }
615}615}
616 616
617void 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
626void TabletProxy::emitScriptEvent(QVariant msg) {617void 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));