forked from Mashiro_Sorata/ADV-Plugin
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
724 B
34 lines
724 B
2 years ago
|
import QtQuick 2.12
|
||
|
|
||
|
import ".." //显式导入单例Common.qml
|
||
|
|
||
|
Canvas {
|
||
|
width: widget.width;
|
||
|
height: widget.height;
|
||
|
contextType: "2d";
|
||
|
renderTarget: Canvas.FramebufferObject
|
||
|
renderStrategy: Canvas.Cooperative
|
||
|
|
||
|
signal audioDataUpdeted(var data)
|
||
|
signal configsUpdated()
|
||
|
property var configs: widget.settings[Common.stylesURL[widget.settings.styles["index"]]]
|
||
|
|
||
|
onConfigsChanged: {
|
||
|
if (context) {
|
||
|
configsUpdated();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
onContextChanged: {
|
||
|
if (context) {
|
||
|
configsUpdated();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
Connections {
|
||
|
enabled: Boolean(context)
|
||
|
target: Common
|
||
|
onAudioDataUpdated: audioDataUpdeted(audioData)
|
||
|
}
|
||
|
}
|