Skip to content
Commit 0f668b05 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

scripting: Add js object <-> QRectF/QSizeF/QPointF conversion helpers

The js code contains code such as

    window.frameGeometry = {x: 42, y: 42, width: 100, height: 50};

However, QJSEngine doesn't know how to convert js object to QRect. For
that purpose, we need to register conversion functions.

So far, we kept registering converter functions only for integer based
geometry types, i.e. QRect, QSize and QPoint. In 5.26, Window was ported
to QRectF, QSizeF and QPointF, but the corresponding conversion helpers
were not added.

BUG: 459369


(cherry picked from commit 4696bdaa)
parent 2bcdc8ab
Loading
Loading
Loading
Pipeline #234498 passed with stage
in 27 minutes and 44 seconds
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment