mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 14:03:55 +02:00
added "updateAudioBar" function signature in header file
This commit is contained in:
parent
7e1b06efdc
commit
68aacfe544
2 changed files with 8 additions and 1 deletions
|
@ -10,7 +10,7 @@ Item {
|
|||
width: parent.width
|
||||
height: parent.height
|
||||
|
||||
// called by C++ code to keep mic level display bar UI updated
|
||||
// called by C++ code to keep audio bar updated
|
||||
function setMicLevel(newMicLevel) {
|
||||
tablet.micLevel = newMicLevel;
|
||||
}
|
||||
|
|
|
@ -84,6 +84,13 @@ public:
|
|||
*/
|
||||
Q_INVOKABLE void removeButton(QObject* tabletButtonProxy);
|
||||
|
||||
/**jsdoc
|
||||
* @function TabletProxy#updateAudioBar
|
||||
* Updates the audio bar in tablet to reflect latest mic level
|
||||
* @param micLevel {double} mic level value between 0 and 1
|
||||
*/
|
||||
Q_INVOKABLE void updateAudioBar(const double micLevel);
|
||||
|
||||
QString getName() const { return _name; }
|
||||
protected:
|
||||
|
||||
|
|
Loading…
Reference in a new issue