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

Support for multiple lines in map tip for images #3485

Merged
merged 5 commits into from
Jun 14, 2024
Merged

Conversation

VitorVieiraZ
Copy link
Contributor

@VitorVieiraZ VitorVieiraZ commented May 31, 2024

AttributePreviewController::mapTipImage() now supports multiline text with expressions.
E.g.:

# image
file:///[%@project_folder%]/mapTip/[%
CASE WHEN "Checkbox" THEN
	'bear.png'
ELSE
	'beaver.png'
END
%]

In app:

Fixes #1106

@tomasMizera tomasMizera added the FROZEN 🥶 do not merge before upcoming release label Jun 3, 2024
Copy link
Collaborator

@tomasMizera tomasMizera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add an autotest for this scenario

@tomasMizera tomasMizera removed the FROZEN 🥶 do not merge before upcoming release label Jun 4, 2024
@VitorVieiraZ VitorVieiraZ changed the title WIP - Support for multiple lines in map tip for images Support for multiple lines in map tip for images Jun 5, 2024
app/test/testattributepreviewcontroller.cpp Outdated Show resolved Hide resolved
app/test/testattributepreviewcontroller.cpp Outdated Show resolved Hide resolved
@tomasMizera
Copy link
Collaborator

Irrelevant iOS CI failure

Copy link
Collaborator

@tomasMizera tomasMizera left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good, let's wait if MacOS CI passes

@tomasMizera tomasMizera merged commit 1159b7c into master Jun 14, 2024
8 of 9 checks passed
@tomasMizera tomasMizera deleted the fix/mapTipImage branch June 14, 2024 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Map tip for images cannot span multiple lines
3 participants