Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Settings UI: Hyperlinks to settings #2420

Merged
merged 4 commits into from
Dec 17, 2021

Conversation

iLLiCiTiT
Copy link
Member

Brief description

Settings entity type label can contain url which lead to settings entity.

Description

Entity type label may contain link that lead to settings://some/settings/path. On click the path should be changed to the entity or category may change (e.g. from Project settings -> System settings). The first item in path must start with one of categories system-settings, project_settings or project_anatomy.

Example of link

{
    "type": "label",
    "label": "Check your system settings <a href=\"settings://system_settings/modules/deadline/deadline_urls\">here</a>"
}

How to test

  1. Add any label to schemas
  2. Click on the url in settings UI

Style note

  • url links can't be styled with Qt stylesheets so only way is to set style in the <a style=\"color:red\"> tag (or using <span>)

Resolves: #2303

@mkolar
Copy link
Member

mkolar commented Dec 17, 2021

Task linked: OP-2054 Hyperlinks in Settings labels

@iLLiCiTiT iLLiCiTiT self-assigned this Dec 17, 2021
@iLLiCiTiT iLLiCiTiT added the type: enhancement Enhancements to existing functionality label Dec 17, 2021
@iLLiCiTiT iLLiCiTiT merged commit 5014970 into develop Dec 17, 2021
@iLLiCiTiT iLLiCiTiT deleted the feature/OP-2054_Hyperlinks-in-Settings-labels branch January 5, 2022 15:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: enhancement Enhancements to existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Hyperlinks in Settings labels
3 participants