Skip to content

Commit

Permalink
[qml] Qt5.15: Une new syntax for all the "onLinkActivated" slots
Browse files Browse the repository at this point in the history
  • Loading branch information
cbentejac committed Feb 2, 2023
1 parent 8c3ff27 commit 6a30d5e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion meshroom/ui/qml/AboutDialog.qml
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ Dialog {
selectByKeyboard: true
wrapMode: TextArea.WrapAnywhere
textFormat: TextEdit.RichText
onLinkActivated: Qt.openUrlExternally(link)
onLinkActivated: function(link) { Qt.openUrlExternally(link) }
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions meshroom/ui/qml/Controls/MessageDialog.qml
Original file line number Diff line number Diff line change
Expand Up @@ -83,20 +83,20 @@ Dialog {
id: textLabel
font.bold: true
visible: text != ""
onLinkActivated: Qt.openUrlExternally(link)
onLinkActivated: function(link) { Qt.openUrlExternally(link) }
}
// Detailed text
Label {
id: detailedLabel
text: text
visible: text != ""
onLinkActivated: Qt.openUrlExternally(link)
onLinkActivated: function(link) { Qt.openUrlExternally(link) }
}
// Additional helper text
Label {
id: helperLabel
visible: text != ""
onLinkActivated: Qt.openUrlExternally(link)
onLinkActivated: function(link) { Qt.openUrlExternally(link) }
}
}

Expand Down

0 comments on commit 6a30d5e

Please sign in to comment.