https://bugs.kde.org/show_bug.cgi?id=459369

Vlad Zahorodnii <vlad.zahorod...@kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://invent.kde.org/plas |https://invent.kde.org/plas
                   |ma/kwin/commit/4696bdaa05f3 |ma/kwin/commit/0f668b05c850
                   |990b3e70fa276c565ea623df1d5 |46fd51a41d5febc611221f4dd00
                   |c                           |a

--- Comment #3 from Vlad Zahorodnii <vlad.zahorod...@kde.org> ---
Git commit 0f668b05c85046fd51a41d5febc611221f4dd00a by Vlad Zahorodnii.
Committed on 19/09/2022 at 15:01.
Pushed by vladz into branch 'Plasma/5.26'.

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.


(cherry picked from commit 4696bdaa05f3990b3e70fa276c565ea623df1d5c)

M  +31   -0    src/scripting/scripting.cpp

https://invent.kde.org/plasma/kwin/commit/0f668b05c85046fd51a41d5febc611221f4dd00a

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to