History

Make the tablet's mic icon reflect the current mute state

David Rowe committed 9 years ago

Commit b5b92c11 parent 8a995cc4 files · +26 −2Browse files

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

Unified · Split

libraries/script-engine/src/TabletScriptingInterface.cpp+9−0
@@ -309,6 +309,15 @@ void TabletProxy::removeButton(QObject* tabletButtonProxy) { · 308 unmodified lines
309309 }
310310 }
311311
312+void TabletProxy::updateMicEnabled(const bool micOn) {
313+ auto tablet = getQmlTablet();
314+ if (!tablet) {
315+ //qCCritical(scriptengine) << "Could not find tablet in TabletRoot.qml";
316+ } else {
317+ QMetaObject::invokeMethod(tablet, "setMicEnabled", Qt::AutoConnection, Q_ARG(QVariant, QVariant(micOn)));
318+ }
319+}
320+
312321 void TabletProxy::updateAudioBar(const double micLevel) {
313322 auto tablet = getQmlTablet();
314323 if (!tablet) {