Skip to content

qt: add a class interface for custom JavaScript extensions

Fatih Uzunoğlu requested to merge fuzun/vlc:qt-cpp_qml_interface into master

Advantage:

  • Ability to expose single static methods to the JS engine.
  • No need to create instances of classes which only have static methods.
  • Less cluttering in mainui.cpp.

Disadvantage:

  • No import used, limited QML tooling support.

I can also migrate some of the math functions from Helpers.js to here under MathExt.

Merge request reports

Loading