Showing the changes to libraries/script-engine/src/TabletScriptingInterface.cpp (1 of 4 files). Show all
Unified · Split
| @@ -309,6 +309,15 @@ void TabletProxy::removeButton(QObject* tabletButtonProxy) { · 308 unmodified lines | ||
| 309 | 309 | } |
| 310 | 310 | } |
| 311 | 311 | |
| 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 | + | |
| 312 | 321 | void TabletProxy::updateAudioBar(const double micLevel) { |
| 313 | 322 | auto tablet = getQmlTablet(); |
| 314 | 323 | if (!tablet) { |