Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[qml] Upgrade QgsRectangle to Q_GADGET & expose QgsLocatorContext's transformContext as property #59568

Merged
merged 3 commits into from
Nov 25, 2024

Conversation

nirvn
Copy link
Contributor

@nirvn nirvn commented Nov 23, 2024

Description

Title says it all, a few more bits exposed to QML environments.

@nyalldawson , failing test adapted to work on both Qt5 and Qt6. Quite interestingly, in Qt6, a QVariant( QgsRectangle ) will have the canConvert() return true instead of false. Doing a qvariant_cast of that variant will also work.

However, both Qt5 and Qt6 return false when calling convert(), so I've upgraded the check to that.

@nirvn nirvn added the API API improvement only, no visible user interface changes label Nov 23, 2024
@github-actions github-actions bot added this to the 3.42.0 milestone Nov 23, 2024
Copy link

github-actions bot commented Nov 23, 2024

🪟 Windows builds

Download Windows builds of this PR for testing.
Debug symbols for this build are available here.
(Built from commit 95e7abd)

🪟 Windows Qt6 builds

Download Windows Qt6 builds of this PR for testing.
(Built from commit 95e7abd)

@nyalldawson nyalldawson merged commit 7153088 into qgis:master Nov 25, 2024
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API API improvement only, no visible user interface changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants