mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 18:50:00 +02:00
fill in updateAudioBar function, invokes qml function
This commit is contained in:
parent
68aacfe544
commit
d8227a686c
1 changed files with 9 additions and 0 deletions
|
@ -141,6 +141,15 @@ void TabletProxy::removeButton(QObject* tabletButtonProxy) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void TabletProxy::updateAudioBar(const double micLevel) {
|
||||||
|
auto tablet = getQmlTablet();
|
||||||
|
if (!tablet) {
|
||||||
|
qCCritical(scriptengine) << "Could not find tablet in TabletRoot.qml";
|
||||||
|
} else {
|
||||||
|
QMetaObject::invokeMethod(tablet, "setMicLevel", Qt::AutoConnection, Q_ARG(QVariant, QVariant::QVariant(micLevel)));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void TabletProxy::addButtonsToHomeScreen() {
|
void TabletProxy::addButtonsToHomeScreen() {
|
||||||
auto tablet = getQmlTablet();
|
auto tablet = getQmlTablet();
|
||||||
if (!tablet) {
|
if (!tablet) {
|
||||||
|
|
Loading…
Reference in a new issue