diff options
author | Vladimir Belyavsky <belyavskyv@gmail.com> | 2022-04-30 13:40:09 +0300 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2022-05-05 16:24:00 +0000 |
commit | 3b1d3f2d4105d1bdf767d0c7c33b04d67d491642 (patch) | |
tree | 868f2ead068d6328c85c232dad281f5a23149695 /src/qml/qml | |
parent | 6b1e7c03f6e0b565a6c33e0150751005b58ad049 (diff) |
labs.platform: fix displaying of icons in platform Menu
Looks like it didn't work from the start:
platform backend (m_handle) has not yet been created by the time
creating a MenuItem component, so m_handle->setIcon() was never called.
To make it work and also to make it consistent with syncing of
all other properties, let's move m_handle->setIcon() into sync() method.
Fixes: QTBUG-103017
Change-Id: Ib457735c840a8621a16ec6363a0c19f0c21fae3b
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
(cherry picked from commit fce525fc789d4835476be6f42df16edfa7aec270)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/qml/qml')
0 files changed, 0 insertions, 0 deletions