示例#1
0
文件: Sound.cpp 项目: bakarih/hifi
QScriptValue soundSharedPointerToScriptValue(QScriptEngine* engine, SharedSoundPointer const& in) {
    return engine->newQObject(in.data());
}
示例#2
0
文件: Sound.cpp 项目: ZappoMan/hifi
SoundScriptingInterface::SoundScriptingInterface(SharedSoundPointer sound) : _sound(sound) {
    QObject::connect(sound.data(), &Sound::ready, this, &SoundScriptingInterface::ready);
}