Showing the changes to libraries/script-engine/src/TabletScriptingInterface.cpp (1 of 1 file). Show all
Unified · Split
| @@ -141,6 +141,15 @@ void TabletProxy::removeButton(QObject* tabletButtonProxy) { · 140 unmodified lines | |||
| 141 | } | 141 | } |
| 142 | } | 142 | } |
| 143 | 143 | ||
| 144 | void TabletProxy::updateAudioBar(const double micLevel) { | ||
| 145 | auto tablet = getQmlTablet(); | ||
| 146 | if (!tablet) { | ||
| 147 | qCCritical(scriptengine) << "Could not find tablet in TabletRoot.qml"; | ||
| 148 | } else { | ||
| 149 | QMetaObject::invokeMethod(tablet, "setMicLevel", Qt::AutoConnection, Q_ARG(QVariant, QVariant::QVariant(micLevel))); | ||
| 150 | } | ||
| 151 | } | ||
| 152 | |||
| 144 | void TabletProxy::addButtonsToHomeScreen() { | 153 | void TabletProxy::addButtonsToHomeScreen() { |
| 145 | auto tablet = getQmlTablet(); | 154 | auto tablet = getQmlTablet(); |
| 146 | if (!tablet) { | 155 | if (!tablet) { |