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
309 }309 }
310}310}
311 311
312void 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
312void TabletProxy::updateAudioBar(const double micLevel) {321void TabletProxy::updateAudioBar(const double micLevel) {
313 auto tablet = getQmlTablet();322 auto tablet = getQmlTablet();
314 if (!tablet) {323 if (!tablet) {